Wiki source code of Unit Test Libraries
Last modified by Manuel Leduc on 2023/10/24 16:31
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == Candidates == | ||
| 2 | |||
| 3 | * The default for Vue is [[vitest>>https://vitest.dev/]]. | ||
| 4 | * [[Jest>>https://jestjs.io/]] (used for Live Data) | ||
| 5 | * [[Mocha>>https://mochajs.org/]] | ||
| 6 | * [[AVA>>https://github.com/avajs/ava]] | ||
| 7 | * [[uvu>>https://github.com/lukeed/uvu]] single threaded, no isolation | ||
| 8 | * [[Jasmine>>https://jasmine.github.io/]] | ||
| 9 | |||
| 10 | == Resources == | ||
| 11 | |||
| 12 | * [[https:~~/~~/vitest.dev/guide/comparisons.html>>https://vitest.dev/guide/comparisons.html]] | ||
| 13 | * [[https:~~/~~/raygun.com/blog/javascript-unit-testing-frameworks/>>https://raygun.com/blog/javascript-unit-testing-frameworks/]] | ||
| 14 | |||
| 15 | == Comparison Matrix == | ||
| 16 | |||
| 17 | |=((( | ||
| 18 | Library | ||
| 19 | )))|=Acceptability|=License|=Module support|=Mocking support|=Typescript support|=Github start | ||
| 20 | |=Vitest|(/) default for Vue|MIT|(/) yes|(/) yes|(/) yes|10.4k | ||
| 21 | |=Jest|(!) no stable Javascript module support, but by far the most popular test library|MIT|(!) experimental|(/) yes|(/) yes| | ||
| 22 | |=Mocha|(x) no mocking support| | |(x) no| | | ||
| 23 | |=AVA|(x) no mocking support| | |(x) no| | | ||
| 24 | |=uvu|(!) less popular, one person project|MIT|(/) yes|(x) yes|(/) yes| | ||
| 25 | |=Jasmine|(x) no mocking support| | |(x) no| |2.9k | ||
| 26 | |||
| 27 |