Skip to content

For usage of the current format, start with getting started, inventory diffs and output versioning. Entries below describe historical releases; their old commands and limitations may have changed.

test-inventory ​

0.12.2 ​

Patch Changes ​

  • #159 dbae2c9 - Match Bun's table titles for indexed and nested fields, missing fields followed by punctuation, and row values that contain placeholder text. Mark a file or suite as not loaded when a Bun table title reads a property through an explicitly null or undefined field. Handle array arguments in named placeholders and match Bun when the initial placeholder key begins with a digit.

  • #159 dbae2c9 - Apply Jasmine's empty-suite rules by version and allow unused callback arguments on focused and skipped suites. Recognize suites whose spec declarations cannot run, and account for code evaluated in hook arguments. Mark specs registered after a nested Jasmine declaration error as not loaded, with their earlier siblings and recovery paths preserved. Keep Jasmine files runnable when they catch their own registration errors. Assign recovery specs to the suite Jasmine leaves open after it rejects an empty suite. Omit Jasmine recovery specs when the guarded registrations and local helpers complete without throwing. Collect specs declared while evaluating Jasmine runner arguments in call order, stopping at a synchronous exception. Use supplied helper arguments when deciding which parameter defaults register specs. Honor synchronous errors from invalid spreads and destructuring in Jasmine declaration arguments. Read string elements and boxed properties in helper parameters so registration defaults and generated titles match the runner. Apply argument ordering and parameter binding to direct Jasmine helper calls and immediately invoked functions. Attach Jasmine declarations and hooks to the suite left open by their arguments. Preserve the current Jasmine suite across the synchronous part of an async registration helper. Collect successive statements after a Jasmine helper suspends in microtask order, with their captured parameters. Omit unreachable Jasmine registrations after an async return, a rejected await or a promise that remains pending. Exclude unreachable Jasmine recovery specs after awaiting a primitive literal. Honor returns through Jasmine async helpers’ try, catch and finally blocks when collecting subsequent specs. Distinguish a rejected async helper from an exception thrown while evaluating its arguments in a Jasmine spec file. Account for registrations and exceptions from calls inside arguments to local Jasmine helpers when checking a catch. Check generator parameter defaults and destructuring at the call, including specs registered while binding a default. Stop registration at a parameter read before initialization while preserving reads deferred inside a closure. Use the arguments supplied to ordinary Jasmine helpers when checking whether a default or the function body reaches the caller's catch. Mark suites with a generator callback as refused by Jasmine and keep recovery with the handler that catches the refusal. Check the children registered through local helpers before collecting specs after a Jasmine suite. Report rejected Jasmine hooks, exclude them from hook counts and follow registration into the caller's catch. Read Jasmine hook callbacks and timeouts supplied through array or string spreads. Track registration and recovery when Jasmine rejects a spec callback or timeout, including pending and spread declarations. Collect Jasmine suites and their specs when an array supplies the title and callback, and follow recovery after a rejected callback. Read Jasmine test and suite names returned by synchronous local functions and track errors while evaluating those calls. Match the names Jasmine reports for primitive spec and suite descriptions, including zero and false. Read Jasmine titles built from helper results and follow evaluated operands during registration. Choose the correct title branch when a Jasmine registration returns a suite, spec or hook result. Format Jasmine array titles containing known primitive values or nested arrays. Preserve holes and evaluated helper or spread elements in Jasmine array descriptions. Follow standard string, array and object methods returned from Jasmine registration helpers. Format ordinary object descriptions in Jasmine, including data objects inside arrays and object spreads. Stop Jasmine argument evaluation when it spreads a noniterable helper result, async generator object, or Jasmine spec or suite result. Follow synchronous generator calls consumed by spreads in Jasmine registration arguments. Track the first and repeated consumption of saved synchronous iterators in Jasmine registration arguments. Follow explicit synchronous generator steps during Jasmine registration, including yielded and returned values, exhaustion and cleanup. Use values sent by next(value) when a Jasmine generator resumes and preserve the order of registrations around suspended call arguments. Follow yields inside arithmetic, template strings and branching expressions so Jasmine collects the chosen titles in order. Apply the same evaluation to fresh generator spreads and retain earlier delegated yields when the generator recovers from an exception. Forward explicit iterator methods through Jasmine generator delegation and use the inner generator's completion value in titles. Use caught values in Jasmine generator titles and preserve their lexical bindings across yields.

  • #159 dbae2c9 - Count the single fallback test when Jest cannot format a table title, and report the file as not loaded when it happens in a parameterized suite. Ignore the supplied callback and timeout when Jest rejects an empty or malformed table. Count the rows that Jest registers when a valid table has a missing or non-callable test callback. Use the titles Jest registers for functions and undefined values, and mark files with rejected test or suite titles as not loaded. Account for declarations called without arguments, including the tests registered by parameterized tables. Read local function and class name properties, including static name fields used in Jest table titles. Read titles from methods on local object literals and expand table rows when a final explicit property supplies the title. Mark files as not loaded when Bun rejects an anonymous computed method used as a title with a separate callback. Resolve titles from local class methods, prototype methods and static fields in initialization order. Use the Bun version to determine whether a static field gives an anonymous function its test title. Expand rows titled by inherited methods and use the derived class when the title is its prototype constructor. Flag titles and table data changed through aliases or shared children of shallow copies, so the inventory does not report stale values. Track writes and deletes through optional chains and aliases selected by conditional, logical and sequence expressions. Keep a title readable when a write changes a separate declaration with the same name. Follow aliases assigned after declaration, including destructuring, and keep earlier captures tied to their original objects. Flag possible changes to titles through the arguments of local helpers called during test collection. Follow possible returned objects even when the same helper is called inside its own argument or another branch returns no value. Follow local constant aliases of functions when collecting tests or tracking writes through helper arguments. Track possible writes through callbacks passed to local helpers, keeping each callback paired with its own arguments. Follow callback parameters through local aliases and selection expressions, including defaults when a supplied callback could be missing. Track writes by local functions invoked through call, apply, or Reflect.apply, including writes to the receiver. Follow literal and named array spreads when Reflect.apply invokes a helper during collection. Track indexed assignments that replace its target, receiver, or arguments before the call, including when a spread copies the array. Follow collection-time array edits that move or replace these values. Track receiver and argument writes made when a bound local function runs during collection. Follow writes by functions returned from local helpers when those functions run during collection, including local methods selected from objects and arrays. Account for writes made by local getters and setters. Use the array element selected when an argument is evaluated, including arguments captured by a bound function and values returned by repeated helper calls. Follow a collection-time helper that replaces or deletes a slot in an array supplied by its caller. Track array methods invoked on helper parameters during collection, including the caller’s references to inserted elements. Follow array edits through parameters and receivers captured by returned local functions. Keep untouched test titles exact when a returned setter is the only possible function, and retain both possibilities when its factory is uncertain. Follow array edits through nested helper calls in execution order, including forwarded callbacks. Resolve reads inside a helper against writes already made during the same invocation. Follow methods installed on a local object by an earlier helper call. Follow callbacks selected from a module-level object or array passed to a local helper, including when separate calls supply different containers. Track array edits made by a callback installed and invoked during the same collection helper. Re-read a forwarded callback after an intervening write, including writes made inside another local helper. Follow the replacement when a callback changes its own entry before a repeated helper call.

  • #159 dbae2c9 - Respect a root Mocha script's file selection during discovery. A script that names its specs no longer picks up unrelated files directly under test/ through Mocha's default spec.

    Combine Mocha's configured specs, extensions, ignores and preloads with the command line, honor --no-recursive, and prefer existing literal spec paths to glob expansion. During discovery, apply simple package-script file filters from Jest, Vitest and Playwright, including Playwright commands in packages without a config.

    Follow literal working-directory changes before runner commands and include Playwright project prerequisites and teardown when filtering files. Match Mocha's ignore paths, config aliases, comma-separated settings, preload resolution and extensionless spec lookup.

    Match Mocha's glob character classes and extension-list spacing. Omit Playwright setup and teardown selected only by empty or hook-only specs.

    Honor shell true and false in conditional directory changes. Apply Playwright project title filters before selecting setup, recognize imports that only export data, and match Mocha ignore character classes and extended patterns.

    Collect tests registered by a helper called directly on a CommonJS import, such as require('./checks').validateOrder().

    Follow Playwright tests registered when local modules load. Honor Playwright's file filtering when tests originate in a helper with a different extension, including matching enclosing describes.

    Honor TypeScript import removal when collecting Playwright registrations, including imports used only in type annotations and imports retained for JSX.

    Assign a shared Playwright module's top-level tests to the first spec that loads it in each command, including when deciding whether a setup project runs.

    Follow immediately invoked functions during Playwright collection and skip module initialization in branches ruled out by a known condition.

    Keep shared Playwright registrations in the spec that reaches the import when a loop is empty or a statement exits early.

    Discover extensionless Mocha preloads under linked project roots and preserve Vitest file filters that contain Windows short directory names.

  • #159 dbae2c9 - Match Vitest's version-specific handling of inherited only, skip and todo options, including their precedence over configured tags in Vitest 4.1. Report the suite that supplied a test's todo state when nested suites have different modes.

    Report forbidden focus from a configured tag and check it before a test body or hook can skip.

    Follow Vitest's nested focus selection from 4.0.17 when reporting isOnly on siblings.

    Honor nested fails: false options and version-specific tag precedence when reporting expected failures. Preserve a test's failure expectation when a focus tag makes it run.

    Report Vitest concurrency from nested suite options, modifiers, tags and the root scheduling default through Vitest 4 and the selected project's default from Vitest 5, including the change to concurrent: false in 4.1.6 and the removal of the sequential option in Vitest 5.

    Keep the table declaration and report a warning when Vitest projects sharing a file generate different case titles.

    Report when a runtime title-length setting prevents the scan from determining a Vitest case name.

    Collect Vitest suites with a function as the title and a separate callback, and report the native title for unnamed functions and classes. Follow local function aliases used as titles, including class names overridden by static fields in Vitest and declared names in Bun.

    Match Bun callback-only declarations, unnamed titles, invalid descriptors, and skipped or todo declarations with omitted callbacks.

0.12.1 ​

Patch Changes ​

  • #157 dafab8b - Discover Playwright specs when a package script runs playwright test without a config file. Default file matching and ignore rules apply from the package folder.

  • #157 dafab8b - Update oxc-parser to 0.160.0 for TypeScript parsing fixes, including comparisons after as and satisfies.

  • #157 dafab8b - Recognize a re-exported Vitest test called with a title, options, a body and an extra argument.

0.12.0 ​

Minor Changes ​

  • #152 271bb7d - Track files selected by relative literal Vite module globs in Vitest scans. Test records store the pattern groups in dependencyGlobs, so filtering a saved inventory can select tests for newly added or deleted matching files. Node ESM imports with a fixed relative filename and a dynamic query now track the source file.

Patch Changes ​

  • #151 4d404b9 - Resolve Vitest project paths and globs from the configured root. Report unknown project membership when the root cannot be read, so the scan no longer says those files will be skipped.

0.11.1 ​

Patch Changes ​

  • #149 3c312ac - Report a conditional skip becoming unconditional as newlySkipped, and the reverse as reEnabled.

  • #149 3c312ac - Count rows in imported parameterized test tables when the row count is known but some row values cannot be worked out.

  • #147 ac689fd - Update oxc-parser to 0.159.0 to pick up JavaScript and TypeScript parsing fixes.

0.11.0 ​

Minor Changes ​

  • #139 bf0bb70 - Support Cypress 10.0 and newer, from 12.0, and WebdriverIO 7.0 and newer, from 8.0: comparing the fixtures with Cypress 10.11.0 and 11.2.0 and WebdriverIO 7.40.0 running them found no difference, and their test syntax is the same. Cypress before 10 kept its config in cypress.json, which the scan doesn't read.

  • #137 51f3376 - Support Cypress 12.0 and newer, from 13.0, and WebdriverIO 8.0 and newer, from 9.0: their syntax is the same, and comparing the fixtures with Cypress 12.17.4 and WebdriverIO 8.46.0 running them found no difference. Projects on them got an unsupported-framework-version warning.

  • #141 ddd192b - Support Jasmine 3.0 and newer, from 4.0: Jasmine 3 still has about a million weekly downloads of jasmine-core, and projects on it got an unsupported-framework-version warning. Read from jasmine-core 3.99.1 and 4.0.0, it, fit, xit and describe check their functions the same way, and comparing the risk fixture with Jasmine 3.99.0 running it found no difference. Jasmine 3's reports give no spec file, so the comparison runs each spec file on its own.

  • #137 51f3376 - Support Jest 27.0 and newer, from 29.0: about a third of the popular projects that use Jest are on 26 to 28, which the scan read with a warning that the version wasn't supported. Read from jest-circus 27.5 and 28.0, the chains are those of Jest 29 but for .failing, which is an invalid-chain error before Jest 28, as the call throws and Jest fails the file. Checked against Jest 27.5.1 and 28.1.3 running the settlement fixture, with .each case titles.

  • #142 130da5f - Support Playwright 1.31 and newer, from 1.42: about 3.7 million weekly downloads of @playwright/test are on 1.31 to 1.41, and projects on them got an unsupported-framework-version warning. Before 1.42 the scan follows what those versions do, read from their source and checked by running them: a describe with details throws, so the file fails to load (invalid-chain); a test with details is listed without their tags and fails when it runs (an invalid-chain warning); test.fail(title, body), and test.skip(), fixme() or fail() with details, declare no test and apply to every test in the scope (skip-without-body); a test without a body loads and fails when it runs (a test-without-body warning); and a test has only the tags of its own title, as Playwright's report gives them. Comparing the fixtures with Playwright 1.31.2, 1.34.3, 1.38.1 and 1.41.2 found no difference beyond the files that fail to load, and none on a copy whose describes have no details, except the state a describe's test.fail() sets, which --list shows only from 1.38 and a run applies in each. Playwright 1.30 and older keep the tests of a file that fails to load, so they stay unsupported.

  • #133 0b4265d - --format commands prints, in place of the inventory, a command line for each config that runs the tests kept, with the projects that run them, as npx playwright test tests/orders/limit-orders.spec.ts --config playwright.config.ts --project chromium webkit; with --related, the tests a change can affect. Each runner gets the files the way it takes them: Jest exact paths with --runTestsByPath, Cypress one command for each testing type, Bun paths that start with ./. Mocha adds files named on its command line to its config's spec, so a # line above its command says that every spec the config lists runs too. runCommands() gives the same commands from the library.

  • #128 5491e0d - Each test has unfollowedDependencies: the file and line of each place it reaches that the scan can't follow, as support/venues.ts:2, sorted, beside hasUnfollowedDependencies. A test that --related keeps for such a place now says where, so a reader or an agent can judge whether a change could be what that place loads; one dynamic import in a shared setup file or a config setting the scan can't work out often marks a whole suite. --fields can pick it. diff ignores the list, as it ignores line numbers; hasUnfollowedDependencies still shows a test that starts or stops reaching such code. Inventories saved by earlier versions don't have the key, so scan both revisions again with this version before comparing them.

  • #138 6b4960a - Support Vitest 1.0 and newer, from 3.0: Vitest 2 and 1 still have about 15 million weekly downloads, and projects on them got an unsupported-framework-version warning. Read from @vitest/runner 1.6.1, 2.0.0, 2.1.9 and 3.0.9, their chains are those of Vitest 3 but for .for: test.for came in 2.0 and describe.for in 3.0, and before, each is an invalid-chain error, as the call throws and Vitest fails the file. Compared with Vitest 1.6.1, 2.0.5 and 2.1.9 running the strategy fixture: no other difference.

Patch Changes ​

  • #140 edea139 - Keep a backslash in a file name on Linux and macOS, where it is no folder separator: a fixture named file \slash.js failed the whole scan with ENOENT.

  • #143 c62d7ee - Read test(title, checkFill, 10_000), a body passed by name before a timeout, as a call shaped like a test, as test(title, () => {}, 10_000) already was. A test object a local module exports again was followed to that module only after such a call, so when it was the file's first test through that name, it declared nothing, without a warning.

  • #127 b32cc66 - Follow a module loaded by a path built from string literals and the module's own folder, as require(path.join(__dirname, 'venues', 'nasdaq.cjs')), import(pathToFileURL(resolve(SUPPORT, 'venues/nyse.ts')).href) or import(fileURLToPath(new URL('../support/feeds.mjs', import.meta.url))), also through constants, instead of reporting it as worked out at run time. __dirname, __filename and import.meta.dirname, filename and url are read with path.join(), path.resolve() with an absolute part, path.dirname(), new URL(), fileURLToPath() and pathToFileURL().

  • #134 541ed66 - Follow a describe function a local CommonJS module takes from its runner and exports again, as module.exports = { describe, it } after const { describe, it } = require('@jest/globals'), and one it exports under another name, as module.exports.suite = describe. The module was reported as exporting no test object, so describe.skip there didn't skip its tests and their suite was missing.

  • #123 cea05e7 - Read a config that calls a function it declares or imports by name from a local file, as export default createVitestConfig('node'), as what that function returns. Without globs, also find the files a package.json script's config runs when no config found by name runs them, or the one there can't be read. The AI SDK repository, whose packages are configured this way, now scans as 19,693 tests instead of 1,186.

  • #122 f8f4a09 - Read a config factory with its parameters set from the call's arguments, their defaults and destructuring included, as configureE2e({ port: 3002 }) or module.exports = buildConfig(__dirname, { testRegex }), and follow one a workspace package exports, a default or CommonJS export, or one passed on from another module. A default written with ??, || or &&, as options ?? {}, is read when its left side is known.

  • #132 ca1e007 - Follow a setup file a config names with require.resolve('./global-setup.js') or import.meta.resolve('./global-setup.ts'), also through constants and path.join(), as Jest's globalSetup, globalTeardown, setupFiles and setupFilesAfterEnv and Vitest's setupFiles and globalSetup often are, instead of reporting it as worked out at run time, which marked every test of the suite hasUnfollowedDependencies. require.resolve() of a package reads as the package's name, as it would written directly; a path that isn't there still can't be worked out.

  • #129 8111fd9 - With expandCases, stop reporting a Playwright file as failing to load with a duplicate-title error when a loop's describe title mixes the loop variable with a value the scan can't work out, as test.describe(`${process.env.TRADING_REGION} ${desk} desk`, ...). Its source text was the same on every pass, so every test in the file was listed as notLoaded, while Playwright's titles differ and it loads the file.

  • #122 f8f4a09 - Read it.only.bind(it) and a test function's other own Function methods, call and apply, as plain calls instead of invalid-chain errors saying the runner stops before it runs any test.

  • #143 c62d7ee - Follow a test function a local module exports again, as module.exports = { test } after require('@jest/globals') or export { test } from 'vitest', when a condition or a function chooses it, as in return open ? test : test.skip or (isCI ? it : it.skip)('title', fn). The bare name was followed to its module only in a call shaped like a test, so when it came first in such a choice, the call declared no test, without a warning. Playwright already followed it.

  • #131 3e5435e - Report a framework-mismatch at the call to a helper whose test object comes from another of the project's modules that builds it from another runner's package, as import { test } from './fixtures' where the fixtures extend @playwright/test, instead of an internal-error for the whole file.

  • #129 8111fd9 - Follow a helper called on the module that exports it, as checks.validatesQuantity('buy') after import * as checks from './checks' or const checks = require('./checks'), instead of leaving out the tests it declares without a warning.

  • #122 f8f4a09 - Report another framework a helper's module imports at the helper's call only when the helper uses what it imports, instead of an error saying the scanned file imports it, as when a Bun test builds data with a function from a module of shared helpers that also imports @playwright/test.

  • #129 8111fd9 - Bind a helper's rest parameter, as ...cycles in settlesIn('equities', 'T+1', 'T+2'), to the arguments left, so a loop over it is counted and expanded and titles built from it are worked out. A spread argument still leaves it unknown.

  • #122 f8f4a09 - Read a var declared in a nested block, such as a switch case or an if block, as belonging to its whole function, as JavaScript hoists it, so a local var context no longer reads as Mocha's context and reports an invalid-chain error, as in a canvas helper that calls context.drawImage().

  • #127 b32cc66 - Take a package.json imports target in build output, as "#src/*.js": "./build/*.js", from the source next to it, as src/context/empty.ts, as workspace packages already are, instead of reporting the import as not read when the project hasn't been built.

  • #140 edea139 - Read an absolute Vitest includeSource entry that names the config's root itself, as includeSource: [resolve(__dirname, './test')] with root: './test', as matching no file, as Vitest does, instead of failing the scan with picomatch's TypeError.

  • #129 8111fd9 - Follow a test function or describe imported from a local file whatever the title of the call that uses it first, as test(TITLES.fill, fn) with test from a fixtures file, or describe(DESK, fn) with Vitest's describe re-exported by a local module. Such a call was left out, and the tests in such a describe lost it, unless an earlier call in the file wrote its title in place.

  • #126 ec9af13 - Without patterns, find the files Mocha runs from package.json scripts: a script that starts mocha, _mocha or ts-mocha, also through the coverage tools nyc, c8 or mcr, runs the specs its command line gives, joined with the spec that remains, with the .mocharc and mocha key found from the script's folder, unless --no-config or --no-package leave them out, and its --spec, --extension, --ignore, --file, --recursive and --ui over the config's. Before, only a config in the root or Mocha's defaults there decided which files ran, so projects that give Mocha its files on the command line, as mocha 'src/**/*.spec.ts', or keep a .mocharc in each package, found none.

  • #140 edea139 - Follow an import written inside a TypeScript declare module block, or inside a block as the reify loader allows, for dependencyHash, instead of an internal-error for the file.

  • #120 4e1341d - Read Jest configs built with next/jest's createJestConfig(config), as the Next.js guide writes them, with the mocks and ignored folders next/jest adds, so their test files are found and their imports followed. Leave out a name Jest's moduleNameMapper maps to an installed package, such as identity-obj-proxy, as an imported package is, instead of reporting it as unfollowed.

  • #135 dc581f1 - --format commands and runCommands() put [, ], *, ?, { and } in a node:test path in brackets, as test/routes/[[]venue[]]/quotes.test.js: node --test reads its arguments as globs, so a route folder such as [venue] ran another file, or none.

  • #136 dd7e35e - Without patterns, node:test files are also found through the node --test scripts of each package.json below the root, run from its folder, as a monorepo's packages run their own; before, only the root's scripts counted, and a root script that named its own files hid every package's tests.

  • #131 3e5435e - Read the runner version from an npm 5 lockfile that records a package's tarball, as "version": "https://registry.npmjs.org/jest/-/jest-20.0.4.tgz", instead of failing the scan with a TypeError; a locked git dependency now falls through to the version package.json declares.

  • #134 541ed66 - Work out a property of an object on its own, as TITLES.fill when TITLES also holds a function, or fees.MINIMUM on a module loaded with const fees = require('./fees') that also exports a value the scan can't work out. One such value made every property of the object unknown, so titles, tables and tags read from it kept their source text.

  • #122 f8f4a09 - Follow a workspace package whose exports point to build output, as ./dist/node.js, to its TypeScript source in the package folder, as node.ts, when it has no src folder, as n8n's shared Vitest config package does.

  • #119 a61bef5 - Keep Playwright test candidates from readable top-level file settings when runtime project construction prevents exact discovery. Mark incomplete discovery as an error with unknown project membership, and follow package-script configs for files without an ancestor config.

  • #122 f8f4a09 - Read playwright.chromium.launch(), playwright.request.newContext() and the other @playwright/test exports called through a default or CommonJS import of the package as library calls, as defineConfig already was, instead of invalid-chain errors that could mark the file's tests as not loaded.

  • #129 8111fd9 - Read Playwright's test.skip, test.fixme and test.fail with a body passed by name as a test, as in test.skip('applies the short-sale rule on ' + venue, checkShortSale). With a title the scan couldn't work out, the call was read as test.skip(condition, description): the test was missing and the other tests of its describe were listed as skipped under that condition.

  • #140 edea139 - Read the runner version from its own entry in pnpm-lock.yaml when an override such as vitest@5.0.0>happy-dom comes first, instead of failing the scan with a TypeError.

  • #122 f8f4a09 - Say that Cypress, WebdriverIO and Jasmine configs are read only in the root when a scan without patterns finds none there, and name the nearest folder below the root that has one, instead of saying no config is in the root or a folder below it.

  • #122 f8f4a09 - Report a file that imports its test functions from another runner's built-in module, as bun:test in a node:test or Jest scan, or node:test in a Vitest, Jest, Mocha, Jasmine or Playwright scan, as a framework-mismatch, as for other runners' packages, instead of an unresolved-test-import error saying the module is not a local file. mocha is a mismatch in Jest, Vitest and Playwright scans too. A module the config's alias maps to a local file, as a shim of bun:test that Vitest runs, is followed as before.

  • #122 f8f4a09 - Find the runner a package.json script starts past xvfb-run and xvfb-maybe, as browser tests start on Linux, and read Currents' pwc and pwc-p as Playwright and its cypress-cloud as Cypress, with the config options they pass on. A word quoted in part, as --server-args="-screen 0 1280x1024x24", is now one word, as the shell reads it.

  • #122 f8f4a09 - Report a test object that local files build from or re-export from another runner's module, as @playwright/test fixtures imported by a file a Jest config runs, as a framework-mismatch that names the chain, instead of an unresolved-test-import error saying the module is not a local file.

  • #122 f8f4a09 - Report a file whose expressions nest more than 1,000 deep, as a chain of thousands of + or calls, as a parse-error, as brackets nested more than 500 deep already are, instead of an internal-error when the scan's walk overflows the stack. The deepest of 447,597 test files in 2,500 popular projects nests 270.

  • #143 c62d7ee - Tests a helper registers when it is called from a describe in a function nothing in the file calls get the test-in-function warning, as the tests written in that function do: the runner registers none of them until that function is called, and they were listed as if it did. A helper in the same file is listed where it is written, the same whether it comes before or after that function; before, one written after it was listed at the call without a warning, and one written before it was listed in both places. An imported helper is listed at the call, with the warning.

  • #143 c62d7ee - Keep a file loaded when a call the runner refuses, such as a Jest describe.each([]), is inside a describe in a function nothing in the file calls, or in a helper called only from such a function. A describe resets what the scan knows about the function around it, so the call was taken to run while the file loads, and every test in the file was notLoaded. It is still reported, as one in a helper body or under a condition is.

  • #130 7e73c98 - Without patterns, keep candidate files for a Vitest config whose project list the scan can't read, as one built with readdirSync, a function in test.projects or Vitest 3's test.workspace: the files the config's own include and exclude select, with their tests' projects null and a config-value-unknown error that says tests may be missing, as Playwright does. Unknown file selection in Vitest discovery is now an error, as in Playwright's. The entries of a test.exclude the scan can read still leave files out beside a spread it can't work out, with a warning, as Jest's ignore patterns do; a browser.enabled it can't work out leaves the config's files listed; a Vitest 3 test.workspace the scan doesn't read gets a warning where test is written; and workspace: undefined counts as no workspace, as Vitest reads it.

  • #126 ec9af13 - Without patterns, list the files of a Vitest browser config whose instance's browser or name the scan can't work out, as instances: [{ browser: process.env.TEST_BROWSER || 'chromium' }], with their tests' projects null and a warning, instead of finding no files: the instances only name the projects.

  • #127 b32cc66 - Follow a workspace package written in JavaScript to its files, as Node loads them: a main or exports that points to JavaScript outside build folders, as ./index.js, and a file the package has no exports for, as @lhci/utils/src/presets/all.js. Tests that import such a package were marked hasUnfollowedDependencies, so --related kept them for a change to any file, and their dependencyHash did not change with the package's code. Built JavaScript with no source next to it is still not followed.

  • #122 f8f4a09 - Follow an import of a file in a workspace package that has no exports, as @trading/e2e/fixtures.ts, to that file, as Node does, instead of reporting the package as not pointing to TypeScript source.

  • #121 c9359e2 - Read a test or describe whose function a wrapper call receives, as in test('fills an order', withBroker(async () => {})): the tests inside such a describe were missing without a diagnostic, and such a test had a null bodyHash, so a diff missed edits to it, and an expectCount of 0. The function's parameters are the wrapper's, so they are not read as fixtures.

0.10.4 ​

Patch Changes ​

  • #117 ac4d95f - Count a config a package.json script starts Vitest, Jest, Playwright, Cypress or WebdriverIO with, as vitest run --config vitest.config.integration.mts, when deciding whether a file runs, so its files no longer get file-not-run. Vitest and Cypress read its globs from the folder the script runs in, the others from the config's folder. A config the scan can't read, such as a variable, gives a config-value-unknown warning on the package.json in place of file-not-run.

  • #117 ac4d95f - Don't report file-not-run for a file that a collected test file imports, such as a shared suite, as its tests run in that file.

0.10.3 ​

Patch Changes ​

  • #115 2da89f8 - Read hooks and suite members on named node:test imports and preserve parameterized declarations chosen between Jest each factories. Avoid false Playwright file-load failures for unknown loop counts, false tests from unresolved destructured wrappers, and async-describe errors caused by awaits inside nested helper declarations. Report Vitest table factories called without their required receiver as file-load failures.

  • #115 2da89f8 - Keep declarations when a file or imported helper calls a local function named require without arguments. The value reader no longer turns that call into an internal-error that discards the file's tests. Preserve suite, test and hook roles when members are destructured from an already-bound node:test module.

  • #115 2da89f8 - Recognize defineConfig on Playwright's original package export, including default and CommonJS imports, instead of reporting an invalid-chain error that marks the file's tests notLoaded. Keep extended test functions distinct from the package export.

0.10.2 ​

Patch Changes ​

  • #103 2e6c3bf - Clarify declared states, conditional skips and expected failures in CLI help, API comments, recipes and CI reports. Correct config inheritance and failure-scope descriptions. Add first-use guidance, concepts and troubleshooting, preserve existing documentation URLs, and publish the diff schema alongside the inventory schema.

  • #104 cf08b52 - Add a checked complete library example, a CLI/library/MCP walkthrough, compact agent guidance and feature-level compatibility notes. Prioritize essential Markdown references and distinguish illustrative excerpts from runnable code by their copy controls.

  • #105 9325281 - Add focused documentation guides for each supported test framework and separate shared scanner limits from runner-specific exceptions.

  • #107 ef35e6e - Add checked examples for Cypress component and E2E selection, WebdriverIO with Jasmine, Playwright projects and Bun case expansion to the framework guides.

  • #106 30dc03f - Keep skipped-test queries consistent with the first scan, add focused Vitest, Jest and Mocha examples, and link framework guides to relevant next steps.

  • #108 7891cc0 - Read context modifiers and subtests in named node:test callbacks, retain valid parent test IDs when callbacks appear before their callers, recognize Windows patterns naming linked node:test folders, and reject TOML inline tables with missing commas.

    Stop claiming that Jest runs tests when a required local preset is missing. Config-based discovery returns no files, while explicit globs retain the declarations with a file-not-run diagnostic.

    Validate node:test concurrency values, report unknown values, and inherit concurrency through parent tests without resetting it for null or undefined options.

0.10.1 ​

Patch Changes ​

  • #99 df8968d - Keep Playwright declaring modifiers when functions are stored in variables or selected inline. Read logical choices with the same rules as the other runners, and classify each nested branch once to avoid exponential traversal.

    Match Vite's alias merge precedence and preserve object aliases when mixed with lists. Mark imports as unfollowed when an unreadable alias entry or find could match them.

    Ignore annotation and step line numbers in inventory diffs, so moving unchanged tests to another line does not report metadata changes.

  • #100 fa10d39 - Read locally declared describe callbacks passed by name, preserving suite placement, inherited state, lexical values and expanded table arguments. Keep suite hashes, dependencies and nested parent links complete, including when a child is written before its calling parent. Apply the existing helper traversal limits and runner callback checks to these callbacks.

0.10.0 ​

Minor Changes ​

  • #96 86e1765 - Compare two complete saved scans with test-inventory diff old.json new.json or diffInventories(before, after). Reports additions, removals, renamed and moved tests, changed code and dependencies, state, tags and other metadata. Matches ids first, then body hashes with file, suite or dependency context, leaving ambiguous matches unmatched. Includes exact body clone groups, JSON Schema, and escaped Markdown output through --format markdown or formatDiffMarkdown. Hash comparisons and rename matching require identical tool versions; incomplete scans warn.

Patch Changes ​

  • #96 86e1765 - Keep unreadable config aliases as dependency gaps rather than silently treating their imports as installed packages. Read string concatenation and templates in config paths. Follow config aliases in setup paths, Jasmine helper globs, Cypress's default and configured support files, Bun preload files, and Node script preloads in dependencies and dependencyHash, so --related keeps tests affected by changes to those files.

  • #96 86e1765 - Apply Mocha's focus filtering, including Cypress and WebdriverIO on Mocha, so an outer describe.only does not focus tests that a more specific focus excludes. A root focused test in standalone Mocha excludes child suites across files. Contain refused calls inside node:test and Bun describe callbacks: Node keeps earlier tests and tests outside the describe; Bun loses that describe only. Vitest reads allowOnly per project, does not fail unconditionally skipped focused tests, and refuses modifiers after a called each or for table.

0.9.1 ​

Patch Changes ​

  • #92 0001eea - Bun: a test whose function is passed by name, followed by a timeout or options, as in test('reprices a basket', repricesBasket, 5_000), is read as a test. The scan took the timeout for the function and reported a test-without-body error, listing every test in the file as not loaded, though Bun runs them.

  • #92 0001eea - A __proto__ key in a bunfig.toml or .mocharc.yml is read as a plain key, as Bun and Mocha read it. A bunfig.toml with a [__proto__] table changed Object.prototype for the whole process, so every later scan in it, such as those of a long-running MCP server, read settings the project never set. A .mocharc.yml one gave its map the settings inside it. TOML keys named constructor or toString are read too, where they were refused.

  • #92 0001eea - Cypress: specPattern and excludeSpecPattern are read as globby, which Cypress uses, reads them. A specPattern that starts with ! leaves files out, where the scan took it to match every other file and listed nearly the whole project; an excludeSpecPattern drops its !, where the scan left out everything else; and a folder in either stands for every file below it, where it matched nothing.

  • #92 0001eea - Jasmine: a describe callback with a TypeScript this parameter, a parameter with a default value or a rest parameter, as function (this: object), is no longer reported as taking arguments. Jasmine checks the function's length, which counts none of these, and runs the specs; the scan listed them as not loaded.

  • #92 0001eea - Jasmine: an xdescribe inside an fdescribe stays skipped, as in Jasmine, where the scan listed its specs as active; a focus inside the xdescribe still runs. WebdriverIO on Jasmine now follows Jasmine's focus rules: a fit inside an xdescribe runs, and in an fdescribe with a fit below it only the fit has isOnly, where the scan applied Mocha's rules.

  • #92 0001eea - A <rootDir> entry in Jest's moduleDirectories, as ['node_modules', '<rootDir>/src'], is followed as a folder to look in, as Jest does. The scan looked for a folder named <rootDir>/src and left the files out of dependencies without a warning.

  • #92 0001eea - Jest's moduleNameMapper replaces the whole import name, as Jest does, also when its pattern matches only part of it, as '\\.css$' does. The scan replaced only the matched part, so a mapped style or file mock was missing from dependencies and its import got a dependency-not-followed warning. Vite's aliases still replace only the part they match.

  • #92 0001eea - Test files reached through a symbolic link are read the way each runner reads them. Jasmine and Bun follow such links and run the file once, as Vitest and Mocha do, so the file is no longer left out; Bun names it by its own path, as its reports do. node:test runs a linked file, twice when its own path matches too, but a wildcard in its pattern doesn't enter a linked folder. The symlink-ignored warning now names the runner in use, where it named Playwright for every runner but Jest.

  • #92 0001eea - Mocha: an absolute glob in spec, as a .mocharc.js builds it with path.join(__dirname, 'test', '**', '*.spec.js'), runs the files it matches. The scan matched it against paths relative to the config's folder, found nothing, and reported no-files-matched.

  • #92 0001eea - Mocha, Cypress and WebdriverIO on Mocha: this.skip() in an afterEach hook no longer marks the tests as skipped. The test has passed by the time the hook runs, and Mocha reports it as a pass.

  • #92 0001eea - Mocha: a .only in a project whose config sets forbid-only (or forbidOnly) gets a forbidden-only error, as Mocha stops the run before any test runs, or a warning when the setting depends on a condition, as Playwright's forbidOnly does.

  • #92 0001eea - A .mocharc.yml is read as js-yaml, Mocha's reader, reads it. Files that Mocha reads and the scan refused, which lost every setting and so the files to test, are now read: a byte order mark, a comment or a %YAML line before ---, a ... at the end, quoted list items with commas, as ['test/**/*.{ts,js}'], YAML's escapes in double quotes, as \x41, and a tab or an escaped quote followed by # in quotes. A quote inside a value, as in grep: buy 'limit # note, no longer hides the comment after it, -a.js on its own line is a value, not a list item, and what Mocha refuses is reported rather than read: a key set twice, a tab in the indent, a: b in a value, a list inside a list, and values that start with @, ` or %. -.5 is a string, as js-yaml reads it. A long line is read in linear time; one of 160 KB took 5 seconds.

  • #92 0001eea - node:test and Bun: a skipped describe skips every test inside it, over the test's own todo, as node:test creates none of them, and in Bun the outermost skipped or todo describe decides, over the describes inside it and the test's own state. The scan took the state nearest the test, so test.todo() in describe.skip() was todo, and in Bun test.skip() in describe.todo() was skipped.

  • #92 0001eea - node:test: a test whose function is passed by name, as test('fills a market order', fillsMarketOrder) or test(fillsMarketOrder), gets that function's bodyHash, and without a title the function's name, as Node.js names it. The scan took the function for the test's options, with an unresolved-option warning and no hash, or for a title it couldn't work out.

  • #92 0001eea - node:test: the scan reads the node --test commands of every script the test script runs through npm run, pnpm, yarn, bun run, npm-run-all, run-s or run-p, as in "test": "npm run test:unit && npm run test:integration". It read only the first script that runs node --test, and left out the files of the others without a warning.

  • #92 0001eea - From Playwright 1.65, test.skip('reason'), test.fixme('reason') and test.fail('reason') with only a string give that string as the record's reason, in a test body and at file or describe level, and no longer a skip-without-body warning, as Playwright 1.65 takes the string as the description. An empty string still applies nothing. Older versions keep the old reading.

  • #92 0001eea - A dependency-not-followed warning for an import a config maps to a file that doesn't exist gives that file's path relative to the root, as every path in the output is. It gave the absolute path, as path.resolve() or <rootDir> built it, so the output differed from machine to machine.

  • #92 0001eea - A test or describe function chosen in place, as in (process.env.CI ? it.skip : it)('books a fill', ...) or (process.env.CI && it.skip || it)(...), is read as one kept in a variable: only what both choices share applies. The scan dropped these tests without a warning, for every runner but Playwright, whose case is still open. Jasmine variables that hold xit, fit, xdescribe or fdescribe, as const later = xit, keep the x or f, as the docs said; their tests were dropped too.

  • #92 0001eea - A Vite alias to a path that starts with /, as alias: { '@': '/src' }, is followed from the project's root, as Vite does, so dependencies and dependencyHash include the files imported through it. The scan looked for /src on the disk, gave a dependency-not-followed warning and left the files out.

  • #92 0001eea - WebdriverIO: a specs or exclude glob that starts with ! matches no file, as in WebdriverIO, where the scan took it to match every other file; a glob that starts with ./ matches from the config's folder only, as its slash keeps glob's matchBase off; from WebdriverIO 10 a capability's specs and exclude are no longer read, only wdio:specs and wdio:exclude; and a capability's settings inside alwaysMatch are read.

0.9.0 ​

Minor Changes ​

  • #88 2d370c9 - Bun 1.2.23 and newer: --framework bun, also found from a package.json script that runs bun test or a bunfig.toml. Its version comes from .bun-version, packageManager or engines.bun, else @types/bun or bun-types. The scan reads Bun's globals and imports of bun:test, @jest/globals and vitest, which Bun rewrites; chains of .skip, .todo, .failing, .only, .concurrent, .serial and .each in any order, refusing the combinations Bun refuses; the conditions .if, .skipIf, .todoIf, .failingIf, .concurrentIf and .serialIf; options second or third, a number as the timeout or { timeout, retry, repeats }; and .each titles as Bun formats them. The files are Bun's *.test.*, *_test.*, *.spec.* and *_spec.* under bunfig.toml's [test] root, less pathIgnorePatterns, with its retry and concurrentTestGlob applied. A small TOML reader reads bunfig.toml.

    The oldest version a framework supports may now name a patch, as Bun's 1.2.23 does.

  • #87 ae2bd90 - dependencyHash follows imports through the config a file runs with: Vite's resolve.alias and Vitest's test.alias, as an object or a list of { find, replacement } with a name or a regex, and Jest's moduleNameMapper, modulePaths and moduleDirectories, with <rootDir>. They were read from tsconfig paths only, so tests that imported through such aliases had hasUnfollowedDependencies and a hash that missed those files. A mapping to no file is a dependency-not-followed warning that names it.

  • #83 9ef9c59 - Cypress 13 and newer: --framework cypress, also found from a cypress package or a cypress.config.* file. Tests are read as Mocha's, with Cypress's test config before the function: retries, of which cypress run takes runMode, browser as a skip condition, @cypress/grep's tags, and from Cypress 16 an error for env, which Cypress refuses there. this.timeout() is not read, as Cypress has only command timeouts; this.retries() in a describe and .retries() after it() or describe() are errors, as Cypress throws on them while it loads the spec. The config's testing types are the projects, e2e and component, each with its specPattern, excludeSpecPattern and retries.

    A project whose package.json lists cypress next to another runner, as Jest or Vitest for unit tests, now needs --framework, as the scan asks for one whenever it finds several runners.

  • #82 04e7328 - Jasmine 4 and newer: --framework jasmine, also found from a jasmine or karma-jasmine package or a spec/support/jasmine.* config. The scan reads describe, it and their x and f forms with Jasmine's focus, a spec without a function as pending, pending(reason) in a spec or its beforeEach or afterEach, from Jasmine 7 notApplicable(reason), the hooks, and a spec's timeout. The config's spec_dir and spec_files, with ! exclusions, decide the files; without a config, as in Karma and Angular projects, the files given by glob run. A call Jasmine refuses stops the whole run at the top level of a file, and is an error that leaves the file's tests as they are inside a describe, which Jasmine catches.

  • #81 85fb8a9 - Mocha 10 and newer: --framework mocha, also found from a mocha package, a .mocharc.* file or a mocha key in package.json. The scan reads describe, context, it, specify, their x forms, .only and .skip, a test without a function as pending, ui: tdd's suite and test, the hooks, this.timeout(), this.retries() and this.skip() where this is Mocha's, and .timeout() and .retries() after it() and describe(). The config's spec, extension, recursive, ignore and file decide the files, and its timeout and retries apply to every test; a YAML config is read too. A describe without a function, it() or describe() without a title, and an unknown chain such as it.concurrent are errors, as Mocha then runs no test.

    A project whose package.json lists mocha next to another runner now needs --framework, as the scan asks for one whenever it finds several runners.

  • #86 1085fb7 - node:test on Node.js 22 and newer: --framework node, also found from a package.json script that runs node --test or a node.config.json. Its version is the Node.js version the project pins in .node-version, .nvmrc, Volta's node or engines.node. The scan reads test, it, describe and suite from node:test, imported or required, with .skip, .todo, .only and from 24.14 .expectFailure, and the options skip, todo, only, timeout, concurrency, expectFailure and from 24.19 and 26.2 tags; t.skip() and t.todo() in a test's body; and the hooks. The files are those the script gives node --test, or Node.js's default patterns, with TypeScript files from 22.18.

    A test declared in a test's body, with t.test() or test(), is a subtest that node:test runs while it runs the test: it is listed with the test's title in suitePath and the test's id in the new key parentTestId, which is null for every other test.

  • #80 cae53c1 - A new invalid-fixture-argument error: a rest property among a Playwright function's fixture arguments, as async ({ page, ...fixtures }) => {} in a test, hook, test.skip() condition or test.extend() fixture written in the test file. Playwright refuses it and runs no tests at all, so the file's tests are now notLoaded instead of active. A nested rest, as ({ page: { mouse, ...pointer } }), and a test.step() callback are allowed, as Playwright allows them.

  • #85 90df9aa - scan() takes a signal, an AbortSignal: the scan checks it before it starts and between files, and rejects with the signal's reason once it aborts, so a server can stop a scan its client no longer waits for.

  • #85 90df9aa - A Vitest .only that allowOnly makes fail is a forbidden-only diagnostic, as for Playwright's forbidOnly: an error when the config sets test.allowOnly to false, and a warning when it is unset, as Vitest then turns it off in CI, or depends on a condition. Vitest marks such a test failed instead of running it.

  • #84 c68bac7 - WebdriverIO 9 and newer: --framework webdriverio, also found from a @wdio/cli package or a wdio.conf.* file. The config's config export, ES or CommonJS, decides the files: specs, with the nested lists that group files into one worker, less exclude, matched as WebdriverIO matches them. Its framework decides how the tests are read, Mocha by default or Jasmine, with mochaOpts.timeout, retries and ui, or jasmineOpts.defaultTimeoutInterval, on every test; Cucumber is reported, as its feature files aren't read. A number after a test's function is WebdriverIO's retry count, and with Jasmine a second one, after the timeout. Mocha's and Jasmine's version gates follow the versions WebdriverIO depends on. With Mocha, a call the runner refuses stops the file loading there, and the tests declared above it still run. The config's rootDir and each capability's own specs and exclude are read too.

    A project whose package.json lists @wdio/cli next to another runner now needs --framework, as the scan asks for one whenever it finds several runners.

Patch Changes ​

  • #85 90df9aa - expectCount counts Playwright's expect.configure(...), called in place as expect.configure({ timeout: 5_000 })(locator) or kept in a variable as const slowExpect = expect.configure(...); it missed both.

  • #83 9ef9c59 - The error for an unknown framework option or --framework value names every runner the scan reads; it still named only Playwright, Vitest and Jest.

  • #89 fd4b13a - --help names all nine runners --framework takes, and says which files node:test and Bun run without globs.

  • #80 cae53c1 - A helper that takes a test's function as a parameter, as function settlementTest(desk, body) { describe(desk, () => test('settles', body)); }, no longer gets a false nested-test warning. The scan read the parameter as the helper itself, and so read the helper's own describe as declared inside the test.

  • #78 1aea8a7 - oxc-parser is updated from 0.156.0 to 0.157.0. The scan output doesn't change, except that a .js file with TypeScript-only syntax, such as export default abstract class or an optional class member, now gets a parse-error, as Node.js would refuse to load it.

  • #80 cae53c1 - A test or describe call with a title the runner refuses, written inside a test or hook body, is now a nested-test warning, not an error that says the runner fails the file. Jest's own suite calls it('test1') inside expect(() => ...) to test that error; the call runs in the test, so the file loads and its tests run.

  • #80 cae53c1 - Before Vitest 4.1, a retry object in the config, as test: { retry: { count: 2 } }, now gets a config-value-unknown warning that Vitest runs no test with it. The tests already had retries: null, but nothing said why.

  • #80 cae53c1 - A call through a Vitest member that reads the function it is called on, destructured as in const { each } = test; each([1, 2])('sizes lot %i', fn), is now an invalid-chain error, and the file's tests are notLoaded: Vitest fails the file. That holds for each, for, skipIf and runIf of test and each of describe in every version, extend, scoped and override from Vitest 4.1, and for of describe from Vitest 5. Before, the scan said nothing and listed the file's other tests as active.

  • #80 cae53c1 - An inline Vitest project in test.projects now runs from the config's test.root or root when it sets none of its own, as every Vitest version does; the scan used the config's folder before Vitest 5. A root the project sets is resolved from the config's root in Vitest 5, as Vitest 5 does, and from the config's folder before.

  • #85 90df9aa - With expandCases, a Vitest case title cuts long values at the length the config sets, test.taskTitleValueFormatTruncate from Vitest 5 and test.chaiConfig.truncateThreshold before, as Vitest does; it cut them at Vitest's default, 40, always.

  • #80 cae53c1 - From Vitest 5, timeout: undefined, retry: undefined and repeats: undefined in a test's options are left out, as Vitest leaves them out, instead of giving an unresolved-option warning that undefined is not a whole number.

0.8.0 ​

Minor Changes ​

  • #75 f6690bb - --framework (library: framework) is now optional. Without it, the scan takes the runner the project uses: the one whose package a package.json in the root or below it lists, or whose config file is there, else one a package.json above the root lists. A project with several runners, or none, gets a usage error (a TypeError in the library) that names what it found.

  • #75 f6690bb - Jest 29 and 30: --framework jest (library: framework: 'jest') lists the tests of Jest files with the same keys as Playwright and Vitest tests. It reads Jest's globals, fit, xit, xtest, fdescribe and xdescribe among them, imports and require() of @jest/globals, the chains Jest has, such as test.concurrent.only.each, .failing as expectedToFail, the timeout passed third, jest.retryTimes() as retries for every test of the file (from 30.5, with entireDescribe, of its describe) and waitBeforeRetry as retryDelay, and @group pragmas as tags, as jest-runner-groups reads them. --expand-cases titles each case as jest-each 29 and 30 do. Calls Jest refuses, such as test.only.concurrent, test('title') without a function or an async describe, mark the file's tests notLoaded.

    Without globs, the test files come from the Jest config, read as Jest reads it: jest.config.*, else package.json, with roots, testMatch, testRegex, the ignore patterns, moduleFileExtensions, projects named by displayName, testTimeout and injectGlobals, also through Jest 30.3's defineConfig() and mergeConfig(); without any config, Jest's defaults apply. framework in the output can now be jest, an open set, so schemaVersion stays 1.

    The cases-not-expanded message no longer names Vitest, as Jest tables can get it too.

Patch Changes ​

  • #75 f6690bb - require() of a local file is followed as an import is: tables, titles and other values it exports, with module.exports or exports.name, are read, and helper functions it exports that declare tests are followed. A helper function a shared file imports and exports again, as an index.js of helpers does, is followed to where it is written, instead of getting an unresolved-test-import error. A helpers file may export a test function it takes from the runner's globals, as export const pendingTest = xit, or from the framework's module, with its modifiers.

  • #75 f6690bb - A call the runner refuses, such as test.only.skip(...), that is only reached under a condition no longer marks every test of its file notLoaded, as the file loads unless the condition holds; the call is still reported. A test function chosen with &&, || or ??, as in const onCi = process.env.CI && test.skip || test, is read like one chosen with ?:. In a config, a list with a spread the scan can't work out keeps the items it can.

  • #75 f6690bb - A config that require()s a local file, as a CommonJS config does with a shared base, now reads what that file exports, as an import of it already did, and a JSON file, required or imported, is read as its value.

  • #75 f6690bb - A table or loop gets its caseCount when its length is known even if one of its values isn't, as in [NaN, Infinity].forEach(...) or a table with a call in a row. A test or describe titled by a function or class written in place, as describe(function OrderBook() {}, ...), takes its name, as the runners do. Code the parser fails to hand over, such as a JSX name written as a Unicode escape, gets a parse-error instead of an internal-error.

  • #75 f6690bb - dependencyHash is faster on large projects: the files a test file and its describes reach are put together once for all their tests, and a workspace's packages are found once, not once per folder that imports one. A scan of the Nx repository with 17,571 tests went from 19.4 to 11.9 seconds. Hashes are unchanged.

0.7.0 ​

Minor Changes ​

  • #72 cf784f0 - --expand-cases (library: expandCases: true) lists each case of a .each or .for table and each pass of a loop whose values the scan can work out as its own record, with the title the runner gives it. Vitest's titles follow the rules of the project's Vitest version, 3.0 to 5: %s, %d, %i, %f, %j, %o, %O, %c, %#, %$ and $name, with values quoted and cut as that version does; they match the names Vitest 3.0, 3.1, 3.2, 4.0, 4.1 and 5.0 list. Each case's values are bound in its callback, so titles, tags and conditions built from them are worked out per case, and an if, ?:, &&, || or ?? that reads nothing but them registers only the branch it takes. Loops in test and hook bodies and loops over a var are not expanded, and a file starts expansions up to 1,000 loop passes and describe cases. Suites and tests have a new key, caseIndex: the case's index from 0, as %# counts, or null without the option. A table that can't be expanded stays one record with a new cases-not-expanded warning. Without the option the output is as before, apart from caseIndex: null on every suite and test.

  • #72 cf784f0 - Values imported from other files of the project are now worked out: a title, tag, annotation, reason, run setting or .each table built from a constant, enum or default export of another module, through re-exports, export *, import * as and JSON files, found the same way as helper functions (relative paths, tsconfig paths, #imports, workspace packages). Values from installed packages are still not read, and keep their diagnostic.

    A test in a for...of, for...in, forEach or map loop over values the scan can work out now has caseCount, the number of tests the runner registers, and no test-in-loop warning; the warning now marks a loop the scan can't count. Values also work out arithmetic on numbers, as in 30 * 1000, ?:, &&, ||, ??, comparisons, Object.keys(), Object.values(), Object.entries(), JSON.stringify(), String(), and a string's toUpperCase(), toLowerCase() and trim() and an array's join(). A skip condition that works out to a constant, such as side === 'short' in a helper called with 'buy', now sets the state it gives instead of being kept as a condition.

    Code after an if whose branch always returns or throws, as in if (!strategy.enabled) return; in a helper, is now under the opposite condition, so its tests have isInCondition and a loop around them no count. A tagged-template table is counted as Vitest splits it: outer pipes are columns, an incomplete last row is left out, and a template without values is one case.

    A test whose title was its source text and is now worked out gets a new id, once.

Patch Changes ​

  • #71 bf8383f - A name destructured from a test object, as in const { describe, beforeEach } = test, is now read as that member: beforeEach(...) is a hook, describe(...) a describe and skip(...) a skipped test, for Playwright and Vitest, also nested, as in const { describe: { serial } } = test. Every such name was read as test itself, so a hook got test-without-body and every test of the file notLoaded, and the tests inside a describe were left out with nested-test warnings.

  • #71 bf8383f - When the root and the folders above it don't have the framework, its version is now read from the shallowest package.json below the root that declares it and holds scanned files, as code/package.json in a monorepo, with that package's lockfile or installed copy first. The version was null there, so the newest rules applied: Vitest 5's, which refuse a file that calls vi.mock inside a block, made every test of such a file notLoaded in a project on Vitest 3.

0.6.1 ​

Patch Changes ​

  • #69 41ce74d - An import that matches a tsconfig paths pattern but none of its files, as an installed package does with "paths": { "*": ["./src/types/*"] }, now goes on to the usual lookup, as TypeScript does. Such imports were reported as unreadable, so every test that used a package or a built-in module such as node:fs got hasUnfollowedDependencies. An @/ or ~/ alias whose files are missing is still reported.

  • #69 41ce74d - A file that only passes names on, as a barrel index.ts with export * from './fees' or export { OrderTicket } from './order-ticket' does, is now in the dependencies of the tests that import through it, so --related keeps them when the file changes. Which module a re-export points at is now part of dependencyHash, as an import's already was, so the hash of a test that imports through a re-export changes once.

  • #69 41ce74d - An imported file that isn't text, such as import logo from './logo.png', is now taken by its bytes in dependencyHash. It was read as text, where every byte that isn't UTF-8 reads the same, so two different images could give the same hash.

  • #69 41ce74d - A <script> block in a Vue or Svelte component whose type isn't JavaScript, such as <script type="application/ld+json"> in <svelte:head>, is no longer read as the component's code. It made the component unreadable, so the modules its real script imports were missing from dependencies.

  • #68 fa9b97a - dependencyHash now follows what a Vue or Svelte single-file component imports, also the components and helpers only its template uses, so a change to a child component changes the hash of the tests that mount its parent. A component whose script doesn't parse is still taken by its text, and its tests get hasUnfollowedDependencies.

  • #69 41ce74d - A file with brackets nested more than 500 deep, such as a generated fixture, now gets a parse-error instead of crashing the scan. oxc-parser overflows the native stack on such a file, about 5,000 deep, and the process dies with a segmentation fault that no error handling can catch, so no inventory was written.

  • #69 41ce74d - expectCount now counts expect.element(), the assertion of Vitest browser mode, so a browser test that checks the page only with await expect.element(locator).toBeVisible() no longer looks like a test without assertions.

  • #69 41ce74d - An import written with a .jsx extension now finds the .tsx file it refers to, as .js already found .ts, so import { OrderHeader } from './OrderHeader.jsx' is followed instead of marking the test with hasUnfollowedDependencies.

  • #69 41ce74d - From Playwright 1.57, the config's tag is now read: every test gets it first in its tags, and a project's grep or grepInvert matches it, so a project with grepInvert: /@nightly/ in a config with tag: '@nightly' no longer runs the tests. When the scan can't work out the tag, as for process.env.CI_ENVIRONMENT_NAME, it gets a config-value-unknown warning, and the tests of a project with a grep get projects: null.

  • #69 41ce74d - From Playwright 1.64, a project with default: false is no longer listed in a test's projects, as Playwright runs it only with --project, unless a project that runs lists it in dependencies or teardown. A default the scan can't work out gets a config-value-unknown warning, and the tests it may run get projects: null.

  • #69 41ce74d - Playwright's defineConfig(base, config) is now merged as Playwright merges it: a project of config merges into the project of base with the same name instead of replacing all of base's projects, and expect, use and build merge key by key. A setup project from a base config is no longer lost, and an expect.toHaveScreenshot.pathTemplate from the base still marks the tests that compare screenshots with hasUnfollowedDependencies.

  • #69 41ce74d - A Vitest retry object in a test's or describe's options before Vitest 4.1 now gets an unresolved-option warning and retries: null. Vitest 4.0 and 3.2 never run such a test; the scan used to ignore the object and give the config's retry count instead.

  • #69 41ce74d - A Vitest test's own skip, only, todo or fails option now replaces the one its tags set, as Vitest does, so test('title', { tags: ['flaky'], skip: false }, fn) is active instead of skipped, and a conditional skip replaces the tag's unconditional one.

  • #69 41ce74d - An import that starts with @/ or ~/, as a Vite resolve.alias allows, now gives the test hasUnfollowedDependencies and a dependency-not-followed warning when no tsconfig paths define it. It was taken for an installed package, so the aliased file was missing from dependencies without a sign, and --related left the test out when that file changed.

  • #69 41ce74d - Vitest 5 tests follow the option rules of Vitest 5.0.5: the last of .skip, skipIf() and runIf() on a test decides its skip, so test.skip.skipIf(false) is active, and a skipIf() or runIf() replaces the skip of a tag or of the options a describe passes down. An option set to undefined, as in test.skip('title', { skip: undefined }, fn), no longer undoes the chain or a tag.

  • #69 41ce74d - In Vitest 5, the projects of a config that another config lists in projects are named inside that config's name, as Vitest names them: the unit project of apps/web/vitest.config.ts, named web, is web (unit).

  • #69 41ce74d - A Vitest project without a test.name now has the name Vitest gives it, in projects and in configs: the name in the package.json of its folder, else the folder's name, so projects: ['packages/*'] names its projects @trading/pricing or ledger instead of "". An inline project without a name is named after its place among the inline projects, as 0, and in Vitest 5 no longer takes the name of the config it extends.

0.6.0 ​

Minor Changes ​

  • #61 926352f - Each test now has a dependencyHash of everything it runs in the project, beside the unchanged bodyHash: its own call with its options, the hooks, test.use() and options of its file and of every describe around it, the fixtures it, those hooks, conditions and test.use() values ask for, with the fixtures those ask for, auto ones and overrides of Playwright's own, through every extend() and mergeTests(), the file's other top-level code, the config and the configs it builds on, setup files, global setup and teardown, the Playwright setup projects the test runs after, and the snapshot files and screenshots it compares against, and the functions, classes, constants and modules all of these use, followed by scope and through imports, re-exports, barrels, require(), import() and Vitest's vi.mock() with a fixed path, with the code each module runs when it loads. A helper that declares the test is in it with the arguments of the call that declares it, so two calls give two hashes. Formatting and comments don't change it, nor does moving the test. Installed packages are left out, and types too, except for type tests.

    dependencies lists the files that went into the hash. When the test reaches something the scan can't follow, a local file that is missing or doesn't parse, an import with a path worked out at run time or a pattern, a value only a declaration file describes, or a setup file the config names in a way the scan can't work out, hasUnfollowedDependencies is true and the new dependency-not-followed warning says where, once per place.

  • #65 31a9bee - --related <file> and the related filter of filterInventory() keep the tests a change to a file can affect: those whose dependencies include it, and those that reach code the scan can't follow, which a change may affect unseen. --related - reads the files from standard input, one per line, so git diff --name-only origin/main... | npx test-inventory --framework playwright --related - lists the tests a pull request can affect. Paths are taken from the current folder, as git writes them, also when --root is a folder in the repository.

0.5.0 ​

Minor Changes ​

  • #51 acec7e7 - Each file record has a new config key: the config the file uses, as the runner started at the root would pick it. That is the outermost config at or above the file that runs it, and for Vitest projects the project that does, read from Playwright's testDir, testMatch, testIgnore and .gitignore files, and from Vitest's include, exclude, includeSource, typecheck.include and benchmark.include with each version's defaults. Before, the nearest config was taken, which is wrong for a root config whose include covers packages that have their own vite.config.ts. A file with tests that no config runs gets the new file-not-run warning.

    The globals check follows the same choice, so a test in a folder project without a config of its own gets Vitest's defaults, and a test the root config runs takes the root's test.globals. Files named by benchmark.include are marked isBenchmark, in place of the default *.bench.* and *.benchmark.* names. The config reader now reads regular expressions and paths built from __dirname, __filename or import.meta with path.join(), path.resolve(), path.dirname(), fileURLToPath() and new URL().

  • #50 3e55445 - The output lists the configs the scanned files use in a new top-level configs key, and as config lines in JSON Lines. A file uses the nearest playwright.config.*, vitest.config.* or vite.config.* in its folder or a folder above, up to the root, as the runner started in that folder would. A config is read as code, never run, and extends lists the files it takes settings from through imports, such as a shared base config.

    Vitest's globals now come from test.globals in the config a file uses, read through defineConfig(), mergeConfig(), spreads, constants and imported base configs. Before, any globals: true in a Vitest or Vite config in the file's folder or a folder above counted, also one Vitest doesn't read for the file, as in a vite.config.ts next to a vitest.config.ts. So globals-not-enabled can now appear where it didn't, and go away where a base config turns globals on. A test.globals the scan can't work out without running the config, and a config it can't read, get the new config-value-unknown warning.

  • #55 a714612 - Run settings now come also from the config a file uses: Playwright's timeout, retries and repeatEach, and Vitest's testTimeout, retry and repeats, where the file sets none. New timeoutSource, retriesSource and repeatsSource keys say where each value comes from: test, suite, file or config, or null when nothing sets it. A test takes the settings of the projects that run it, after their grep. When those projects disagree, the config sets the value under a condition, as in process.env.CI ? 2 : 0, or the scan can't work out the projects, the value is null with its source config. For a value under a condition, timeoutConfigText, retriesConfigText and repeatsConfigText hold the config's text for it, so retries: process.env.CI ? 2 : 0 reads as written. Playwright's fullyParallel and Vitest's sequence.concurrent make tests isParallel where the file sets no mode, when every project that runs the test sets it.

    A .only in a Playwright file whose config sets forbidOnly gets the new forbidden-only error, since the run then fails before any test runs. When forbidOnly depends on a condition, as in !!process.env.CI, it is a warning that quotes the condition.

  • #59 aeb3eb1 - Vitest tags the config defines in test.tags now apply to the tests that carry them, as Vitest applies them. Their skip, todo, fails and only are merged with the test's own and those a describe passes down, and Vitest's order, only over skip over todo, gives the state, with the new stateSource value config when a tag sets it. Their concurrent, timeout, retry, repeats and meta set those keys where the test sets none: from Vitest 5 over a describe's options, and in Vitest 4.1 under them. The lowest priority wins between tags, and a Vitest 5 project's own tags replace those of the config it extends.

    A tag the config doesn't define fails the file in Vitest unless strictTags is off, also when there is no config, so it now gets the new undefined-tag error, and the file's tests are notLoaded; in a function or under a condition it is a warning, as that code may not run. The config-may-change-state warning now shows only when the scan can't work out the config's tags.

  • #54 c610789 - Each test record has a new projects key: the names of the projects that run the test, of the config its file uses. For Playwright, those whose testDir, testMatch and testIgnore include the file, less those whose grep or grepInvert leaves the test's title and tags out; for Vitest, those whose files include it, with each browser instance as a project, named as Vitest names it, such as unit (chromium). It is [] when no project runs the test, and null without a config or when the scan can't tell. Config records list their projects in projects, each with its name, testDir and Playwright's dependencies.

  • #53 b9471ec - Glob patterns are optional, in scan() and on the command line: without them, the test files are those the Playwright or Vitest configs in the root and the folders below it run, each with the config it uses. A config whose files the scan can't work out gets a config-value-unknown warning that says to give patterns, and a scan without patterns and without a config says so in no-files-matched. An empty list of patterns is still an error.

Patch Changes ​

  • #58 1a34d74 - oxc-parser is updated from 0.154.0 to 0.156.0. The scan output doesn't change.

0.4.1 ​

Patch Changes ​

  • #48 6549682 - A hook given a function the file declares, as in test.beforeEach(skipOnCI) or beforeEach(requireBroker), is read like one written in place: the skips, timeouts and other settings it sets apply to the tests it runs before, and its fixtures are in their fixtures. Before, they were missed. A test or hook function passed by name no longer gets a state-in-helper warning saying no test, hook or describe in the file calls it.

  • #47 a603623 - A # import or workspace package export whose target repeats the * of its pattern, as in "#desks/*": "./desks/*/*-fixtures.ts", is followed to the file Node.js loads, with every * filled in. Only the first was filled in before, so the import wasn't followed and its tests were missing, with an unresolved-test-import error. A folder given as the pattern with a long run of slashes, as in tests////unit, no longer slows the scan down while the hint for it is written.

0.4.0 ​

Minor Changes ​

  • #42 6849f55 - Tests say what their body does: fixtures (the names the test and the beforeEach, afterEach and aroundEach hooks around it take from the context, without Vitest's own keys), expectCount (expect(), expect.soft() and expect.poll() calls in the body), Vitest's expect.assertions(n) and expect.hasAssertions() as expectedAssertions and expectsAssertions, hasEmptyBody, and Playwright's test.step() titles in steps. Vitest's annotate() from the test context adds annotations. Vitest 5 benchmarks, in *.bench.ts files or using the bench fixture, have isBenchmark and a benchmarkCount in the summary. New warnings: empty-title for a test or describe titled '', and bench-outside-benchmark-file.

  • #40 f462ee0 - The output has a record for each scanned file in files, and counts hooks: hooks on a file holds the hooks at its top level, on a describe the hooks registered in it, and on a test every hook that runs around it, by kind (beforeAll, beforeEach, afterEach, afterAll, and Vitest's aroundEach and aroundAll). Hooks a helper function registers count where it is called. JSON Lines output has a file line for each file, and a filtered inventory keeps the files of the matched tests and the files without tests.

  • #41 1ab9cb4 - Tests and describes have their run settings: timeout, isSlow and slowCondition, retries, retryDelay, retryCondition and repeats. Playwright's come from test.describe.configure({ timeout, retries }), test.setTimeout() and test.slow() in a describe, a beforeEach or the test body; Vitest's from the timeout, retry and repeats options, the timeout after the body, and the options a describe passes down. A test gets the value from the nearest place that sets it, and null when the file sets none, so the config decides. A timeout that can't be worked out, or that is set only under a condition, gets an unresolved-option warning.

0.3.0 ​

Minor Changes ​

  • #37 5aeb139 - --fields keeps only the named keys of each test, and id, as in --fields fullName,reason, so a short question gets a short answer. Output written with it leaves keys out, so it no longer matches the JSON Schema. The library exports the same as pickTestFields().

  • #37 5aeb139 - Filters keep only the tests a question is about: --state, --tag, --grep (a regular expression on the full name, ignoring case), --only and --without-reason, as in --state skip --state fixme for the tests that don't run. The output then describes only those tests: the describes around them, their diagnostics and a summary counted over them. The library exports the same as filterInventory().

  • #37 5aeb139 - --format jsonl writes the inventory as JSON Lines: an inventory line, one line per suite, test and diagnostic, and a summary line, each marked with a type key. Tools that read one record per line, such as grep or DuckDB, no longer need the whole document in memory. The InventoryLine type describes the lines.

Patch Changes ​

  • #34 0f96258 - A fixtures file that builds its test object with a function, written there or imported from another file, as in export const test = defineDeskTest('equities'), is followed: MSW's test files import such a test. Their tests were missing before, with no diagnostic when the fixtures file didn't import the framework itself. A test object built with a call the scan can't follow now gets an unresolved-test-import error that names the call, as in "builds it with withWarmup(), which is not followed". A function that returns what another function returns, as () => onFeed('NYSE'), is followed too.

  • #34 0f96258 - A call the runner refuses that is written like a declaration, as describe.sequential('title', fn) in Vitest 5, test('title', fn, { retry: 2 }) from Vitest 4 or test.only.skip('title', fn), is listed as a plain test or describe without the part that fails. Its tests were missing before; now they are notLoaded, like every other test in the file.

  • #34 0f96258 - States follow the runners' precedence more closely, as checked against Vitest 5.0.4 running generated files. A skip in a test or hook body loses to a fixme, skip or todo set while the file loads, as on a describe around the test, since the body never runs. In Vitest, a test's own options win over its chain, so test.skip('title', { skip: false }, fn) is active, but the chain still sets its mode: test.concurrent('title', { concurrent: false }, fn) runs in parallel. A describe passes its skip option down to the tests and describes inside, where it wins over todo, also when the describe's own .only keeps the describe itself from being skipped.

0.2.1 ​

Patch Changes ​

  • #28 04ff6d2 - A skip in a catch block, such as context.skip() when a test server can't start, is conditional, with the catch clause as its condition, as in catch (error). It was recorded as an unconditional skip before. A test declared in a catch block gets isInCondition: true.

  • #32 3fcc933 - Globs match folders and files whose names start with a dot, as in .storybook/ or .github/scripts/, as they do in Playwright and Vitest; test files there were left out before. .git folders are always left out, like node_modules.

  • #31 631cc6b - Workspace packages are found from both pnpm-workspace.yaml and the workspaces of package.json. When a repository had both, as after a move to pnpm that kept the old list, only package.json was read, and a package listed only in pnpm-workspace.yaml got an unresolved-test-import error.

  • #30 968e2bc - A call through an imported name that reads like a test function is followed, and reported with unresolved-test-import when it can't be, also when it goes through a member the scan doesn't know, as in it.effect('title', fn) from @effect/vitest, or passes a timeout after the body, as in test('title', fn, 60_000). Such tests were missing before, with no diagnostic. A module's own export of a name now wins over the same name passed on by export *, as in JavaScript: export const it = ... next to export * from 'vitest' is no longer read as Vitest's it.

  • #28 04ff6d2 - Tests on a test object that a function returns are found, as in conditionalTest({ min: 22 })('title', fn) or const quoteTest = onNode(22), when the function is declared in the file or imported from a local file. They were missing before, with no diagnostic. When the function returns a different test function on different runs, as it.skip or it, only the modifiers they all have apply, as for a variable chosen by a condition. When the function can't be followed and its name reads like a test object, as for one from an installed package, the calls on what it returns are read as tests on trust, with a local-test-object warning.

0.2.0 ​

Minor Changes ​

  • #18 4698945 - A custom test object is followed through as many files as it takes: a fixtures file may re-export it, as in export * from './base', or build it with extend on one imported from another file. When it can't be followed, the unresolved-test-import message says where the chain of files ends. A test file that builds its own test object from an imported one, as in const test = base.extend({...}), no longer gets a local-test-object warning when the import is followed.

  • #18 4698945 - Tests and describes declared in a helper function are recorded at each call of the helper from the file or a describe, in the describe around the call, as the runner registers them; before, they were listed once, where written. Titles built from the helper's parameters are worked out from each call's arguments. Helpers imported from other files are followed too: their records give the call in the scanned file as their location, and a new declaredAt key on test and suite records gives the file and line where the helper writes the test, null for code in the scanned file. Records of tests in helpers get new ids, as their describes change. The test-in-function warning now only marks tests in functions the scan can't place, and the call where the scan stops following helpers, after 10,000 calls in a file.

  • #18 4698945 - Files that playwright-bdd generates from Gherkin features are read: they import Playwright's test from playwright-bdd.

  • #18 4698945 - In Playwright, a test in a loop whose title path is the same on each pass gets a duplicate-title error, and the tests in its file are notLoaded, as Playwright refuses the file. Vitest runs duplicate titles, so nothing changes there.

  • #18 4698945 - Path aliases come from the tsconfig nearest the importing file, as TypeScript finds it, with every file it extends, packages included, and ${configDir} filled in. Without a tsconfig.json, the nearest tsconfig.base.json is used, as in an Nx workspace, and a solution-style tsconfig takes its aliases from the projects it references.

  • #18 4698945 - Workspace packages are followed before an install, from the workspaces of package.json or from pnpm-workspace.yaml. When a package's exports, types or main point to build output that doesn't exist yet, as in dist/esm/index.js, the source next to it in src/ is used. Patterns and links that lead out of the workspace folder are not followed.

Patch Changes ​

  • #19 bc7a0c3 - A test or hook that calls helper functions which call each other in many places no longer makes the scan hang. Each helper's states are applied once for each set of conditions it is reached under, and past 10,000 helper calls from one call, a state-in-helper warning says the rest are not applied.

  • #20 7f32dd4 - oxc-parser is updated from 0.153.0 to 0.154.0. The scan output doesn't change.

0.1.2 ​

Patch Changes ​

  • #13 89a029f - Locks set with test.describe.configure({ lock }), new in Playwright 1.64, are added to every test in the file or describe where the call is made. They were dropped before.

  • #13 89a029f - From Vitest 5, a file that calls vi.mock, vi.unmock or vi.hoisted anywhere but its top level gets a removed-api error at the call, and its tests are notLoaded, as Vitest refuses the file. Files with in-source tests are not checked, as in Vitest.

0.1.1 ​

Patch Changes ​

  • #5 c812450 - A custom test object imported from '.' or '..' is followed like other relative imports.

  • #5 c812450 - When a pattern names a folder, the no-files-matched message suggests a pattern for the test files in it, and the command line prints that message.

  • #5 c812450 - A pattern whose folder doesn't exist now gives only the no-files-matched warning, not a read-error.

  • #5 c812450 - Messages for problems that make Playwright refuse a file now say that Playwright runs no tests at all, in any file.

  • #5 c812450 - A new test-in-function warning marks a test declared in a function that is called more than once, from another describe, never, or from other files. The runner registers such a test in the describe around each call, while the record stays where the test is written.

  • #5 c812450 - A version range that starts below the oldest supported version, such as ^1.40.0, now gets the approximate-framework-version warning, since the newest rules of its major apply.

  • #5 c812450 - Every test in a Vitest file that fails to load is now notLoaded, as Vitest runs none of them: a chain Vitest doesn't have, sequential or bench from Vitest 5, or options as the third argument from Vitest 4. A call to bench is reported where it is made, not where it is imported.

0.1.0 ​

Minor Changes ​

  • #1 5073b07 - First release. Scans Playwright and Vitest test files and lists every test declaration as JSON, with its location, describes, tags, annotations and state, without running the tests.

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