Unit Test Libraries
Last modified by Manuel Leduc on 2023/10/24 16:31
Candidates
- The default for Vue is vitest.
- Jest (used for Live Data)
- Mocha
- AVA
- uvu single threaded, no isolation
- Jasmine
Resources
- https://vitest.dev/guide/comparisons.html
- https://raygun.com/blog/javascript-unit-testing-frameworks/
Comparison Matrix
Library | Acceptability | License | Module support | Mocking support | Typescript support | Github start |
---|---|---|---|---|---|---|
Vitest | default for Vue | MIT | yes | yes | yes | 10.4k |
Jest | no stable Javascript module support, but by far the most popular test library | MIT | experimental | yes | yes | |
Mocha | no mocking support | no | ||||
AVA | no mocking support | no | ||||
uvu | less popular, one person project | MIT | yes | yes | yes | |
Jasmine | no mocking support | no | 2.9k |