Skip to content

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.

ProjectFrameworkFilesTests
freeCodeCamp/freeCodeCamp 34b1acd, end to endPlaywright84273
vuejs/core 4ab865aVitest1963,729
sveltejs/kit 3bc9234, test appsPlaywright10404
sveltejs/kit 3bc9234, unitVitest78707
microsoft/playwright 4357c23Playwright5385,984
supabase/supabase 18080d8, end to endPlaywright32263
supabase/supabase 18080d8, unitVitest8158,305
storybookjs/storybook e57cf30Vitest8279,464
TanStack/router 663282b, end to endPlaywright3091,487
TanStack/router 663282b, unitVitest4504,801
vitejs/vite b6c20f6Vitest1801,919
vitest-dev/vitest 3e3624cVitest5093,438
nuxt/nuxt 0296ca4Vitest2662,603
excalidraw/excalidraw 4c00f31Vitest1422,216
getsentry/sentry-javascript dffd6b1, end to endPlaywright7142,188
getsentry/sentry-javascript dffd6b1, unitVitest85310,124
jestjs/jest 7261444, unit and end to endJest4954,675
prettier/prettier d5d30c1, unitJest2363
expressjs/express 43fca52, unit and acceptanceMocha891,187
jasmine/jasmine 50eb76d, coreJasmine1141,778
cypress-io/cypress-realworld-app 0729f68, e2e and componentCypress26113
webdriverio/webdriverio 7411de3, headless end to endWebdriverIO28381
nodejs/undici 76f0b3e, unitnode:test1801,392
elysiajs/elysia 1cf5ce1Bun1371,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-import errors. Its tests import test from fixtures files such as pageTest.ts and browserTest.ts, which build it in several layers from other local files; those are followed. 98 imports end at the copy of Playwright that tests/playwright-test/stable-test-runner pins in its own node_modules, which a checkout without an install doesn't have. The other 20 are in tests/installation, whose npmTest.ts builds its test object on _baseTest, an internal export of Playwright, not on test. Its 4 local-test-object warnings are variables such as const test = baseTest.extend(...) over that pinned copy, read on trust. Its one state-in-helper warning is a test.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-import errors. Playwright tests that the Vitest pattern also matches import test from a helper that builds it from @nuxt/test-utils/playwright.
  • Sentry unit, 7 framework-mismatch and 10 unresolved-test-import errors. 7 files are Bun tests that import test, it and describe from bun: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.ts declares its tests in testRender(), which it calls three times, once for each way to render, and Teleport.spec.ts calls runSharedTests() 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's donatePageTests(), which runs in a signed-in and a signed-out describe.
  • Vite, 11 local-test-object warnings. const it = await createModuleRunnerTester(...) builds a test object from a helper; its calls are read as tests.
  • Vitest's own suite. 10 nested-test warnings come from tests written inside test bodies, which Vitest's own tests serialize and run in a separate Vitest. The one globals-not-enabled warning is from the same code, which runs there with globals: 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. One nested-test: a test.skip written inside another test's body, which Playwright never collects.
  • Jest's own suite. 5 unresolved-test-import errors: property tests import it from @fast-check/jest, an installed package. 8 of the 9 nested-test warnings come from jest-jasmine2's tests of Jest's own errors, which call it('test1') or it.todo('test1', () => {}) inside expect(() => ...) in a test body; those calls run in the test, not while the file loads, so the file's tests stay active. The ninth is a jest-circus test that declares a test inside its body on purpose. The unsupported-framework-version warning is because the repository is Jest itself, whose version there is 0.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 runnerRecordsListed by the runnerDifferences
supabase e2e/studio, Playwright 1.59.12532560
Vite packages, Vitest 5.0.38781,0364
TanStack Router packages/router-core, Vitest 4.1.41,4863,6437

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 them isInCondition. One test.skip test is missing from vitest list, which leaves out skipped and todo tests.
  • TanStack Router: two test.skip tests are missing from vitest list for the same reason. Three skipped tests are in a *.perf.test.ts file 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.

Documentation for test-inventory 0.12.2. Released under the MIT License.