Real projects
CI scans the test suites of well-known open-source projects at pinned commits on every pull request, and a few of them were checked against the runners' own lists. npm run corpus repeats the scans; the list of projects is in tests/compare/corpus.json, with the number of files and tests each scan found. A scan fails when it finds fewer, when a file gets a parse-error or internal-error, or when a file calls test, it or describe but gets neither a test record nor an error that says why. The projects that use Vitest are also listed with Vitest's static parser and compared with the scan, as described in Compared with the runners.
Scans
Folders named fixtures and __fixtures__ are left out: they hold test inputs, some with syntax errors on purpose, that the projects' runners never load.
| Project | Framework | Files | Tests |
|---|---|---|---|
freeCodeCamp/freeCodeCamp 34b1acd, end to end | Playwright | 84 | 273 |
vuejs/core 4ab865a | Vitest | 196 | 3,729 |
sveltejs/kit 3bc9234, test apps | Playwright | 10 | 404 |
sveltejs/kit 3bc9234, unit | Vitest | 78 | 707 |
microsoft/playwright 4357c23 | Playwright | 538 | 5,984 |
supabase/supabase 18080d8, end to end | Playwright | 32 | 263 |
supabase/supabase 18080d8, unit | Vitest | 815 | 8,305 |
storybookjs/storybook e57cf30 | Vitest | 827 | 9,464 |
TanStack/router 663282b, end to end | Playwright | 309 | 1,487 |
TanStack/router 663282b, unit | Vitest | 450 | 4,801 |
vitejs/vite b6c20f6 | Vitest | 180 | 1,919 |
vitest-dev/vitest 3e3624c | Vitest | 509 | 3,438 |
nuxt/nuxt 0296ca4 | Vitest | 266 | 2,603 |
excalidraw/excalidraw 4c00f31 | Vitest | 142 | 2,216 |
getsentry/sentry-javascript dffd6b1, end to end | Playwright | 714 | 2,188 |
getsentry/sentry-javascript dffd6b1, unit | Vitest | 853 | 10,124 |
jestjs/jest 7261444, unit and end to end | Jest | 495 | 4,675 |
prettier/prettier d5d30c1, unit | Jest | 23 | 63 |
expressjs/express 43fca52, unit and acceptance | Mocha | 89 | 1,187 |
jasmine/jasmine 50eb76d, core | Jasmine | 114 | 1,778 |
cypress-io/cypress-realworld-app 0729f68, e2e and component | Cypress | 26 | 113 |
webdriverio/webdriverio 7411de3, headless end to end | WebdriverIO | 28 | 381 |
nodejs/undici 76f0b3e, unit | node:test | 180 | 1,392 |
elysiajs/elysia 1cf5ce1 | Bun | 137 | 1,633 |
No scan had a parse-error or internal-error. Most diagnostics are warnings about values the scan can't work out without running the code: titles built in loops, .each tables built by functions, and tests declared in loops. The errors and the larger warning counts have these causes:
- Playwright's own suite, 118
unresolved-test-importerrors. Its tests importtestfrom fixtures files such aspageTest.tsandbrowserTest.ts, which build it in several layers from other local files; those are followed. 98 imports end at the copy of Playwright thattests/playwright-test/stable-test-runnerpins in its ownnode_modules, which a checkout without an install doesn't have. The other 20 are intests/installation, whosenpmTest.tsbuilds its test object on_baseTest, an internal export of Playwright, not ontest. Its 4local-test-objectwarnings are variables such asconst test = baseTest.extend(...)over that pinned copy, read on trust. Its onestate-in-helperwarning is atest.skip()inside a fixture, which skips the tests that use the fixture. The framework version is unknown because the repository is Playwright itself. - Nuxt, 24
unresolved-test-importerrors. Playwright tests that the Vitest pattern also matches importtestfrom a helper that builds it from@nuxt/test-utils/playwright. - Sentry unit, 7
framework-mismatchand 10unresolved-test-importerrors. 7 files are Bun tests that importtest,itanddescribefrombun:test, one mismatch each, and 5 import them from@effect/vitest, an installed package that wraps Vitest, where each name is reported once per file. - Vue core, 217 tests in helper functions.
render.spec.tsdeclares its tests intestRender(), which it calls three times, once for each way to render, andTeleport.spec.tscallsrunSharedTests()in an eager and a defer describe. The scan records those tests at each call, in the describe around it, as Vitest registers them. Other projects do the same in places, such as freeCodeCamp'sdonatePageTests(), which runs in a signed-in and a signed-out describe. - Vite, 11
local-test-objectwarnings.const it = await createModuleRunnerTester(...)builds a test object from a helper; its calls are read as tests. - Vitest's own suite. 10
nested-testwarnings come from tests written inside test bodies, which Vitest's own tests serialize and run in a separate Vitest. The oneglobals-not-enabledwarning is from the same code, which runs there withglobals: true. The framework version is unknown because the repository is Vitest itself. - Sentry end to end. One
framework-mismatch: a Vitest file inside a Playwright test app. Onenested-test: atest.skipwritten inside another test's body, which Playwright never collects. - Jest's own suite. 5
unresolved-test-importerrors: property tests importitfrom@fast-check/jest, an installed package. 8 of the 9nested-testwarnings come from jest-jasmine2's tests of Jest's own errors, which callit('test1')orit.todo('test1', () => {})insideexpect(() => ...)in a test body; those calls run in the test, not while the file loads, so the file's tests stayactive. The ninth is a jest-circus test that declares a test inside its body on purpose. Theunsupported-framework-versionwarning is because the repository is Jest itself, whose version there is0.0.0-use.local.
Historical runner comparison
This section records a historical check, not a comparison of the current release.
Three of the projects were installed and listed with their own runner, and the lists were matched with the scan by file and line, as described in Compared with the runners. This was done with test-inventory 0.1.1, before tests in helper functions were recorded at each call.
| Project and runner | Records | Listed by the runner | Differences |
|---|---|---|---|
supabase e2e/studio, Playwright 1.59.1 | 253 | 256 | 0 |
Vite packages, Vitest 5.0.3 | 878 | 1,036 | 4 |
TanStack Router packages/router-core, Vitest 4.1.4 | 1,486 | 3,643 | 7 |
The runners list more tests because they repeat a test for each loop iteration and each .each case, which the scan keeps as one record with isInLoop or caseCount. Every difference has a known cause:
- Vite: three tests inside
if (isWindows)are not collected on Linux; the scan marks themisInCondition. Onetest.skiptest is missing fromvitest list, which leaves out skipped and todo tests. - TanStack Router: two
test.skiptests are missing fromvitest listfor the same reason. Three skipped tests are in a*.perf.test.tsfile that the package's Vitest config excludes, while the scan's pattern included it. Two type tests share a title, and Vitest lists type tests without a line, so each matches both entries.