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 bynext(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 throughcall,apply, orReflect.apply, including writes to the receiver. Follow literal and named array spreads whenReflect.applyinvokes 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 undertest/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
trueandfalsein 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
isOnlyon siblings.Honor nested
fails: falseoptions 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: falsein 4.1.6 and the removal of thesequentialoption 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 runsplaywright testwithout 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 afterasandsatisfies.#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 independencyGlobs, 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 asnewlySkipped, and the reverse asreEnabled.#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 incypress.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 anunsupported-framework-versionwarning.#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 anunsupported-framework-versionwarning. Read from jasmine-core 3.99.1 and 4.0.0,it,fit,xitanddescribecheck 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 fromjest-circus27.5 and 28.0, the chains are those of Jest 29 but for.failing, which is aninvalid-chainerror 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.eachcase titles.#142
130da5f- Support Playwright 1.31 and newer, from 1.42: about 3.7 million weekly downloads of@playwright/testare on 1.31 to 1.41, and projects on them got anunsupported-framework-versionwarning. 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 (aninvalid-chainwarning);test.fail(title, body), andtest.skip(),fixme()orfail()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 (atest-without-bodywarning); 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'stest.fail()sets, which--listshows 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 commandsprints, in place of the inventory, a command line for each config that runs the tests kept, with the projects that run them, asnpx 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'sspec, 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 hasunfollowedDependencies: the file and line of each place it reaches that the scan can't follow, assupport/venues.ts:2, sorted, besidehasUnfollowedDependencies. A test that--relatedkeeps 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.--fieldscan pick it.diffignores the list, as it ignores line numbers;hasUnfollowedDependenciesstill 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 anunsupported-framework-versionwarning. Read from@vitest/runner1.6.1, 2.0.0, 2.1.9 and 3.0.9, their chains are those of Vitest 3 but for.for:test.forcame in 2.0 anddescribe.forin 3.0, and before, each is aninvalid-chainerror, 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 namedfile \slash.jsfailed the whole scan withENOENT.#143
c62d7ee- Readtest(title, checkFill, 10_000), a body passed by name before a timeout, as a call shaped like a test, astest(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, asrequire(path.join(__dirname, 'venues', 'nasdaq.cjs')),import(pathToFileURL(resolve(SUPPORT, 'venues/nyse.ts')).href)orimport(fileURLToPath(new URL('../support/feeds.mjs', import.meta.url))), also through constants, instead of reporting it as worked out at run time.__dirname,__filenameandimport.meta.dirname,filenameandurlare read withpath.join(),path.resolve()with an absolute part,path.dirname(),new URL(),fileURLToPath()andpathToFileURL().#134
541ed66- Follow a describe function a local CommonJS module takes from its runner and exports again, asmodule.exports = { describe, it }afterconst { describe, it } = require('@jest/globals'), and one it exports under another name, asmodule.exports.suite = describe. The module was reported as exporting no test object, sodescribe.skipthere 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, asexport 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, asconfigureE2e({ port: 3002 })ormodule.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&&, asoptions ?? {}, is read when its left side is known.#132
ca1e007- Follow a setup file a config names withrequire.resolve('./global-setup.js')orimport.meta.resolve('./global-setup.ts'), also through constants andpath.join(), as Jest'sglobalSetup,globalTeardown,setupFilesandsetupFilesAfterEnvand Vitest'ssetupFilesandglobalSetupoften are, instead of reporting it as worked out at run time, which marked every test of the suitehasUnfollowedDependencies.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- WithexpandCases, stop reporting a Playwright file as failing to load with aduplicate-titleerror when a loop's describe title mixes the loop variable with a value the scan can't work out, astest.describe(`${process.env.TRADING_REGION} ${desk} desk`, ...). Its source text was the same on every pass, so every test in the file was listed asnotLoaded, while Playwright's titles differ and it loads the file.#122
f8f4a09- Readit.only.bind(it)and a test function's other own Function methods,callandapply, as plain calls instead ofinvalid-chainerrors saying the runner stops before it runs any test.#143
c62d7ee- Follow a test function a local module exports again, asmodule.exports = { test }afterrequire('@jest/globals')orexport { test } from 'vitest', when a condition or a function chooses it, as inreturn open ? test : test.skipor(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 aframework-mismatchat the call to a helper whose test object comes from another of the project's modules that builds it from another runner's package, asimport { test } from './fixtures'where the fixtures extend@playwright/test, instead of aninternal-errorfor the whole file.#129
8111fd9- Follow a helper called on the module that exports it, aschecks.validatesQuantity('buy')afterimport * as checks from './checks'orconst 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...cyclesinsettlesIn('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 avardeclared in a nested block, such as aswitchcase or anifblock, as belonging to its whole function, as JavaScript hoists it, so a localvar contextno longer reads as Mocha'scontextand reports aninvalid-chainerror, as in a canvas helper that callscontext.drawImage().#127
b32cc66- Take a package.jsonimportstarget in build output, as"#src/*.js": "./build/*.js", from the source next to it, assrc/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 VitestincludeSourceentry that names the config's root itself, asincludeSource: [resolve(__dirname, './test')]withroot: './test', as matching no file, as Vitest does, instead of failing the scan with picomatch'sTypeError.#129
8111fd9- Follow a test function or describe imported from a local file whatever the title of the call that uses it first, astest(TITLES.fill, fn)withtestfrom a fixtures file, ordescribe(DESK, fn)with Vitest'sdescribere-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 startsmocha,_mochaorts-mocha, also through the coverage toolsnyc,c8ormcr, runs the specs its command line gives, joined with thespecthat remains, with the.mocharcandmochakey found from the script's folder, unless--no-configor--no-packageleave them out, and its--spec,--extension,--ignore,--file,--recursiveand--uiover 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, asmocha 'src/**/*.spec.ts', or keep a.mocharcin each package, found none.#140
edea139- Follow an import written inside a TypeScriptdeclare moduleblock, or inside a block as the reify loader allows, fordependencyHash, instead of aninternal-errorfor the file.#120
4e1341d- Read Jest configs built with next/jest'screateJestConfig(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'smoduleNameMappermaps to an installed package, such asidentity-obj-proxy, as an imported package is, instead of reporting it as unfollowed.#135
dc581f1---format commandsandrunCommands()put[,],*,?,{and}in a node:test path in brackets, astest/routes/[[]venue[]]/quotes.test.js:node --testreads 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 thenode --testscripts of eachpackage.jsonbelow 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 aTypeError; 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, asTITLES.fillwhenTITLESalso holds a function, orfees.MINIMUMon a module loaded withconst 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, asnode.ts, when it has nosrcfolder, 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- Readplaywright.chromium.launch(),playwright.request.newContext()and the other@playwright/testexports called through a default or CommonJS import of the package as library calls, asdefineConfigalready was, instead ofinvalid-chainerrors that could mark the file's tests as not loaded.#129
8111fd9- Read Playwright'stest.skip,test.fixmeandtest.failwith a body passed by name as a test, as intest.skip('applies the short-sale rule on ' + venue, checkShortSale). With a title the scan couldn't work out, the call was read astest.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 inpnpm-lock.yamlwhen an override such asvitest@5.0.0>happy-domcomes first, instead of failing the scan with aTypeError.#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, asbun:testin a node:test or Jest scan, ornode:testin a Vitest, Jest, Mocha, Jasmine or Playwright scan, as aframework-mismatch, as for other runners' packages, instead of anunresolved-test-importerror saying the module is not a local file.mochais a mismatch in Jest, Vitest and Playwright scans too. A module the config's alias maps to a local file, as a shim ofbun:testthat Vitest runs, is followed as before.#122
f8f4a09- Find the runner a package.json script starts pastxvfb-runandxvfb-maybe, as browser tests start on Linux, and read Currents'pwcandpwc-pas Playwright and itscypress-cloudas 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/testfixtures imported by a file a Jest config runs, as aframework-mismatchthat names the chain, instead of anunresolved-test-importerror 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 aparse-error, as brackets nested more than 500 deep already are, instead of aninternal-errorwhen 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 thetest-in-functionwarning, 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 Jestdescribe.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 wasnotLoaded. 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 withreaddirSync, a function intest.projectsor Vitest 3'stest.workspace: the files the config's ownincludeandexcludeselect, with their tests'projectsnulland aconfig-value-unknownerror 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 atest.excludethe scan can read still leave files out beside a spread it can't work out, with a warning, as Jest's ignore patterns do; abrowser.enabledit can't work out leaves the config's files listed; a Vitest 3test.workspacethe scan doesn't read gets a warning wheretestis written; andworkspace: undefinedcounts as no workspace, as Vitest reads it.#126
ec9af13- Without patterns, list the files of a Vitest browser config whose instance'sbrowserornamethe scan can't work out, asinstances: [{ browser: process.env.TEST_BROWSER || 'chromium' }], with their tests'projectsnulland 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: amainorexportsthat points to JavaScript outside build folders, as./index.js, and a file the package has noexportsfor, as@lhci/utils/src/presets/all.js. Tests that import such a package were markedhasUnfollowedDependencies, so--relatedkept them for a change to any file, and theirdependencyHashdid 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 noexports, 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 intest('fills an order', withBroker(async () => {})): the tests inside such a describe were missing without a diagnostic, and such a test had a nullbodyHash, so a diff missed edits to it, and anexpectCountof 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, asvitest run --config vitest.config.integration.mts, when deciding whether a file runs, so its files no longer getfile-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 aconfig-value-unknownwarning on the package.json in place offile-not-run.#117
ac4d95f- Don't reportfile-not-runfor 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 withtest-inventory diff old.json new.jsonordiffInventories(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 markdownorformatDiffMarkdown. 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 intest('reprices a basket', repricesBasket, 5_000), is read as a test. The scan took the timeout for the function and reported atest-without-bodyerror, listing every test in the file as not loaded, though Bun runs them.#92
0001eea- A__proto__key in abunfig.tomlor.mocharc.ymlis read as a plain key, as Bun and Mocha read it. Abunfig.tomlwith a[__proto__]table changedObject.prototypefor 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.ymlone gave its map the settings inside it. TOML keys namedconstructorortoStringare read too, where they were refused.#92
0001eea- Cypress:specPatternandexcludeSpecPatternare read as globby, which Cypress uses, reads them. AspecPatternthat starts with!leaves files out, where the scan took it to match every other file and listed nearly the whole project; anexcludeSpecPatterndrops 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 TypeScriptthisparameter, a parameter with a default value or a rest parameter, asfunction (this: object), is no longer reported as taking arguments. Jasmine checks the function'slength, which counts none of these, and runs the specs; the scan listed them as not loaded.#92
0001eea- Jasmine: anxdescribeinside anfdescribestays skipped, as in Jasmine, where the scan listed its specs as active; a focus inside thexdescribestill runs. WebdriverIO on Jasmine now follows Jasmine's focus rules: afitinside anxdescriberuns, and in anfdescribewith afitbelow it only thefithasisOnly, where the scan applied Mocha's rules.#92
0001eea- A<rootDir>entry in Jest'smoduleDirectories, as['node_modules', '<rootDir>/src'], is followed as a folder to look in, as Jest does. The scan looked for a folder named<rootDir>/srcand left the files out ofdependencieswithout a warning.#92
0001eea- Jest'smoduleNameMapperreplaces 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 fromdependenciesand its import got adependency-not-followedwarning. 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. Thesymlink-ignoredwarning now names the runner in use, where it named Playwright for every runner but Jest.#92
0001eea- Mocha: an absolute glob inspec, as a.mocharc.jsbuilds it withpath.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 reportedno-files-matched.#92
0001eea- Mocha, Cypress and WebdriverIO on Mocha:this.skip()in anafterEachhook 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.onlyin a project whose config setsforbid-only(orforbidOnly) gets aforbidden-onlyerror, as Mocha stops the run before any test runs, or a warning when the setting depends on a condition, as Playwright'sforbidOnlydoes.#92
0001eea- A.mocharc.ymlis 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%YAMLline 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 ingrep: buy 'limit # note, no longer hides the comment after it,-a.json 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: bin a value, a list inside a list, and values that start with@,`or%.-.5is 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, sotest.todo()indescribe.skip()was todo, and in Buntest.skip()indescribe.todo()was skipped.#92
0001eea- node:test: a test whose function is passed by name, astest('fills a market order', fillsMarketOrder)ortest(fillsMarketOrder), gets that function'sbodyHash, and without a title the function's name, as Node.js names it. The scan took the function for the test's options, with anunresolved-optionwarning and no hash, or for a title it couldn't work out.#92
0001eea- node:test: the scan reads thenode --testcommands of every script thetestscript runs throughnpm run,pnpm,yarn,bun run,npm-run-all,run-sorrun-p, as in"test": "npm run test:unit && npm run test:integration". It read only the first script that runsnode --test, and left out the files of the others without a warning.#92
0001eea- From Playwright 1.65,test.skip('reason'),test.fixme('reason')andtest.fail('reason')with only a string give that string as the record'sreason, in a test body and at file or describe level, and no longer askip-without-bodywarning, as Playwright 1.65 takes the string as the description. An empty string still applies nothing. Older versions keep the old reading.#92
0001eea- Adependency-not-followedwarning 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, aspath.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 holdxit,fit,xdescribeorfdescribe, asconst later = xit, keep thexorf, as the docs said; their tests were dropped too.#92
0001eea- A Vite alias to a path that starts with/, asalias: { '@': '/src' }, is followed from the project's root, as Vite does, sodependenciesanddependencyHashinclude the files imported through it. The scan looked for/srcon the disk, gave adependency-not-followedwarning and left the files out.#92
0001eea- WebdriverIO: aspecsorexcludeglob 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'smatchBaseoff; from WebdriverIO 10 a capability'sspecsandexcludeare no longer read, onlywdio:specsandwdio:exclude; and a capability's settings insidealwaysMatchare read.
0.9.0
Minor Changes
#88
2d370c9- Bun 1.2.23 and newer:--framework bun, also found from a package.json script that runsbun testor abunfig.toml. Its version comes from.bun-version,packageManagerorengines.bun, else@types/bunorbun-types. The scan reads Bun's globals and imports ofbun:test,@jest/globalsandvitest, which Bun rewrites; chains of.skip,.todo,.failing,.only,.concurrent,.serialand.eachin any order, refusing the combinations Bun refuses; the conditions.if,.skipIf,.todoIf,.failingIf,.concurrentIfand.serialIf; options second or third, a number as the timeout or{ timeout, retry, repeats }; and.eachtitles as Bun formats them. The files are Bun's*.test.*,*_test.*,*.spec.*and*_spec.*underbunfig.toml's[test] root, lesspathIgnorePatterns, with itsretryandconcurrentTestGlobapplied. A small TOML reader readsbunfig.toml.The oldest version a framework supports may now name a patch, as Bun's 1.2.23 does.
#87
ae2bd90-dependencyHashfollows imports through the config a file runs with: Vite'sresolve.aliasand Vitest'stest.alias, as an object or a list of{ find, replacement }with a name or a regex, and Jest'smoduleNameMapper,modulePathsandmoduleDirectories, with<rootDir>. They were read from tsconfigpathsonly, so tests that imported through such aliases hadhasUnfollowedDependenciesand a hash that missed those files. A mapping to no file is adependency-not-followedwarning that names it.#83
9ef9c59- Cypress 13 and newer:--framework cypress, also found from acypresspackage or acypress.config.*file. Tests are read as Mocha's, with Cypress's test config before the function:retries, of whichcypress runtakesrunMode,browseras a skip condition,@cypress/grep'stags, and from Cypress 16 an error forenv, which Cypress refuses there.this.timeout()is not read, as Cypress has only command timeouts;this.retries()in a describe and.retries()afterit()ordescribe()are errors, as Cypress throws on them while it loads the spec. The config's testing types are the projects,e2eandcomponent, each with itsspecPattern,excludeSpecPatternandretries.A project whose package.json lists
cypressnext 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 ajasmineorkarma-jasminepackage or aspec/support/jasmine.*config. The scan readsdescribe,itand theirxandfforms with Jasmine's focus, a spec without a function as pending,pending(reason)in a spec or itsbeforeEachorafterEach, from Jasmine 7notApplicable(reason), the hooks, and a spec's timeout. The config'sspec_dirandspec_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 amochapackage, a.mocharc.*file or amochakey inpackage.json. The scan readsdescribe,context,it,specify, theirxforms,.onlyand.skip, a test without a function as pending,ui: tdd'ssuiteandtest, the hooks,this.timeout(),this.retries()andthis.skip()wherethisis Mocha's, and.timeout()and.retries()afterit()anddescribe(). The config'sspec,extension,recursive,ignoreandfiledecide the files, and itstimeoutandretriesapply to every test; a YAML config is read too. A describe without a function,it()ordescribe()without a title, and an unknown chain such asit.concurrentare errors, as Mocha then runs no test.A project whose package.json lists
mochanext 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 runsnode --testor anode.config.json. Its version is the Node.js version the project pins in.node-version,.nvmrc, Volta'snodeorengines.node. The scan readstest,it,describeandsuitefromnode:test, imported or required, with.skip,.todo,.onlyand from 24.14.expectFailure, and the optionsskip,todo,only,timeout,concurrency,expectFailureand from 24.19 and 26.2tags;t.skip()andt.todo()in a test's body; and the hooks. The files are those the script givesnode --test, or Node.js's default patterns, with TypeScript files from 22.18.A test declared in a test's body, with
t.test()ortest(), is a subtest that node:test runs while it runs the test: it is listed with the test's title insuitePathand the test's id in the new keyparentTestId, which isnullfor every other test.#80
cae53c1- A newinvalid-fixture-argumenterror: a rest property among a Playwright function's fixture arguments, asasync ({ page, ...fixtures }) => {}in a test, hook,test.skip()condition ortest.extend()fixture written in the test file. Playwright refuses it and runs no tests at all, so the file's tests are nownotLoadedinstead ofactive. A nested rest, as({ page: { mouse, ...pointer } }), and atest.step()callback are allowed, as Playwright allows them.#85
90df9aa-scan()takes asignal, anAbortSignal: the scan checks it before it starts and between files, and rejects with the signal'sreasononce it aborts, so a server can stop a scan its client no longer waits for.#85
90df9aa- A Vitest.onlythatallowOnlymakes fail is aforbidden-onlydiagnostic, as for Playwright'sforbidOnly: an error when the config setstest.allowOnlytofalse, 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/clipackage or awdio.conf.*file. The config'sconfigexport, ES or CommonJS, decides the files:specs, with the nested lists that group files into one worker, lessexclude, matched as WebdriverIO matches them. Itsframeworkdecides how the tests are read, Mocha by default or Jasmine, withmochaOpts.timeout,retriesandui, orjasmineOpts.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'srootDirand each capability's ownspecsandexcludeare read too.A project whose package.json lists
@wdio/clinext to another runner now needs--framework, as the scan asks for one whenever it finds several runners.
Patch Changes
#85
90df9aa-expectCountcounts Playwright'sexpect.configure(...), called in place asexpect.configure({ timeout: 5_000 })(locator)or kept in a variable asconst slowExpect = expect.configure(...); it missed both.#83
9ef9c59- The error for an unknownframeworkoption or--frameworkvalue names every runner the scan reads; it still named only Playwright, Vitest and Jest.#89
fd4b13a---helpnames all nine runners--frameworktakes, and says which files node:test and Bun run without globs.#80
cae53c1- A helper that takes a test's function as a parameter, asfunction settlementTest(desk, body) { describe(desk, () => test('settles', body)); }, no longer gets a falsenested-testwarning. 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.jsfile with TypeScript-only syntax, such asexport default abstract classor an optional class member, now gets aparse-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 anested-testwarning, not an error that says the runner fails the file. Jest's own suite callsit('test1')insideexpect(() => ...)to test that error; the call runs in the test, so the file loads and its tests run.#80
cae53c1- Before Vitest 4.1, aretryobject in the config, astest: { retry: { count: 2 } }, now gets aconfig-value-unknownwarning that Vitest runs no test with it. The tests already hadretries: null, but nothing said why.#80
cae53c1- A call through a Vitest member that reads the function it is called on, destructured as inconst { each } = test; each([1, 2])('sizes lot %i', fn), is now aninvalid-chainerror, and the file's tests arenotLoaded: Vitest fails the file. That holds foreach,for,skipIfandrunIfoftestandeachofdescribein every version,extend,scopedandoverridefrom Vitest 4.1, andforofdescribefrom Vitest 5. Before, the scan said nothing and listed the file's other tests as active.#80
cae53c1- An inline Vitest project intest.projectsnow runs from the config'stest.rootorrootwhen 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- WithexpandCases, a Vitest case title cuts long values at the length the config sets,test.taskTitleValueFormatTruncatefrom Vitest 5 andtest.chaiConfig.truncateThresholdbefore, as Vitest does; it cut them at Vitest's default, 40, always.#80
cae53c1- From Vitest 5,timeout: undefined,retry: undefinedandrepeats: undefinedin a test's options are left out, as Vitest leaves them out, instead of giving anunresolved-optionwarning thatundefinedis 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 apackage.jsonin the root or below it lists, or whose config file is there, else one apackage.jsonabove the root lists. A project with several runners, or none, gets a usage error (aTypeErrorin 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,fdescribeandxdescribeamong them, imports andrequire()of@jest/globals, the chains Jest has, such astest.concurrent.only.each,.failingasexpectedToFail, the timeout passed third,jest.retryTimes()asretriesfor every test of the file (from 30.5, withentireDescribe, of its describe) andwaitBeforeRetryasretryDelay, and@grouppragmas as tags, as jest-runner-groups reads them.--expand-casestitles each case as jest-each 29 and 30 do. Calls Jest refuses, such astest.only.concurrent,test('title')without a function or an async describe, mark the file's testsnotLoaded.Without globs, the test files come from the Jest config, read as Jest reads it:
jest.config.*, elsepackage.json, withroots,testMatch,testRegex, the ignore patterns,moduleFileExtensions,projectsnamed bydisplayName,testTimeoutandinjectGlobals, also through Jest 30.3'sdefineConfig()andmergeConfig(); without any config, Jest's defaults apply.frameworkin the output can now bejest, an open set, soschemaVersionstays 1.The
cases-not-expandedmessage 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, withmodule.exportsorexports.name, are read, and helper functions it exports that declare tests are followed. A helper function a shared file imports and exports again, as anindex.jsof helpers does, is followed to where it is written, instead of getting anunresolved-test-importerror. A helpers file may export a test function it takes from the runner's globals, asexport const pendingTest = xit, or from the framework's module, with its modifiers.#75
f6690bb- A call the runner refuses, such astest.only.skip(...), that is only reached under a condition no longer marks every test of its filenotLoaded, as the file loads unless the condition holds; the call is still reported. A test function chosen with&&,||or??, as inconst 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 thatrequire()s a local file, as a CommonJS config does with a shared base, now reads what that file exports, as animportof it already did, and a JSON file, required or imported, is read as its value.#75
f6690bb- A table or loop gets itscaseCountwhen 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, asdescribe(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 aparse-errorinstead of aninternal-error.#75
f6690bb-dependencyHashis 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.eachor.fortable 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 anif,?:,&&,||or??that reads nothing but them registers only the branch it takes. Loops in test and hook bodies and loops over avarare 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, ornullwithout the option. A table that can't be expanded stays one record with a newcases-not-expandedwarning. Without the option the output is as before, apart fromcaseIndex: nullon 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.eachtable built from a constant, enum or default export of another module, through re-exports,export *,import * asand JSON files, found the same way as helper functions (relative paths, tsconfigpaths,#imports, workspace packages). Values from installed packages are still not read, and keep their diagnostic.A test in a
for...of,for...in,forEachormaploop over values the scan can work out now hascaseCount, the number of tests the runner registers, and notest-in-loopwarning; the warning now marks a loop the scan can't count. Values also work out arithmetic on numbers, as in30 * 1000,?:,&&,||,??, comparisons,Object.keys(),Object.values(),Object.entries(),JSON.stringify(),String(), and a string'stoUpperCase(),toLowerCase()andtrim()and an array'sjoin(). A skip condition that works out to a constant, such asside === 'short'in a helper called with'buy', now sets the state it gives instead of being kept as a condition.Code after an
ifwhose branch always returns or throws, as inif (!strategy.enabled) return;in a helper, is now under the opposite condition, so its tests haveisInConditionand 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 inconst { describe, beforeEach } = test, is now read as that member:beforeEach(...)is a hook,describe(...)a describe andskip(...)a skipped test, for Playwright and Vitest, also nested, as inconst { describe: { serial } } = test. Every such name was read astestitself, so a hook gottest-without-bodyand every test of the filenotLoaded, and the tests inside a describe were left out withnested-testwarnings.#71
bf8383f- When the root and the folders above it don't have the framework, its version is now read from the shallowestpackage.jsonbelow the root that declares it and holds scanned files, ascode/package.jsonin a monorepo, with that package's lockfile or installed copy first. The version wasnullthere, so the newest rules applied: Vitest 5's, which refuse a file that callsvi.mockinside a block, made every test of such a filenotLoadedin a project on Vitest 3.
0.6.1
Patch Changes
#69
41ce74d- An import that matches a tsconfigpathspattern 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 asnode:fsgothasUnfollowedDependencies. An@/or~/alias whose files are missing is still reported.#69
41ce74d- A file that only passes names on, as a barrelindex.tswithexport * from './fees'orexport { OrderTicket } from './order-ticket'does, is now in thedependenciesof the tests that import through it, so--relatedkeeps them when the file changes. Which module a re-export points at is now part ofdependencyHash, 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 asimport logo from './logo.png', is now taken by its bytes independencyHash. 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 whosetypeisn'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 fromdependencies.#68
fa9b97a-dependencyHashnow 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 gethasUnfollowedDependencies.#69
41ce74d- A file with brackets nested more than 500 deep, such as a generated fixture, now gets aparse-errorinstead 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-expectCountnow countsexpect.element(), the assertion of Vitest browser mode, so a browser test that checks the page only withawait expect.element(locator).toBeVisible()no longer looks like a test without assertions.#69
41ce74d- An import written with a.jsxextension now finds the.tsxfile it refers to, as.jsalready found.ts, soimport { OrderHeader } from './OrderHeader.jsx'is followed instead of marking the test withhasUnfollowedDependencies.#69
41ce74d- From Playwright 1.57, the config'stagis now read: every test gets it first in itstags, and a project'sgreporgrepInvertmatches it, so a project withgrepInvert: /@nightly/in a config withtag: '@nightly'no longer runs the tests. When the scan can't work out thetag, as forprocess.env.CI_ENVIRONMENT_NAME, it gets aconfig-value-unknownwarning, and the tests of a project with agrepgetprojects: null.#69
41ce74d- From Playwright 1.64, a project withdefault: falseis no longer listed in a test'sprojects, as Playwright runs it only with--project, unless a project that runs lists it independenciesorteardown. Adefaultthe scan can't work out gets aconfig-value-unknownwarning, and the tests it may run getprojects: null.#69
41ce74d- Playwright'sdefineConfig(base, config)is now merged as Playwright merges it: a project ofconfigmerges into the project ofbasewith the same name instead of replacing all ofbase's projects, andexpect,useandbuildmerge key by key. A setup project from a base config is no longer lost, and anexpect.toHaveScreenshot.pathTemplatefrom the base still marks the tests that compare screenshots withhasUnfollowedDependencies.#69
41ce74d- A Vitestretryobject in a test's or describe's options before Vitest 4.1 now gets anunresolved-optionwarning andretries: 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 ownskip,only,todoorfailsoption now replaces the one its tags set, as Vitest does, sotest('title', { tags: ['flaky'], skip: false }, fn)is active instead of skipped, and a conditionalskipreplaces the tag's unconditional one.#69
41ce74d- An import that starts with@/or~/, as a Viteresolve.aliasallows, now gives the testhasUnfollowedDependenciesand adependency-not-followedwarning when no tsconfigpathsdefine it. It was taken for an installed package, so the aliased file was missing fromdependencieswithout a sign, and--relatedleft 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()andrunIf()on a test decides its skip, sotest.skip.skipIf(false)is active, and askipIf()orrunIf()replaces the skip of a tag or of the options a describe passes down. An option set toundefined, as intest.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 inprojectsare named inside that config's name, as Vitest names them: theunitproject ofapps/web/vitest.config.ts, namedweb, isweb (unit).#69
41ce74d- A Vitest project without atest.namenow has the name Vitest gives it, inprojectsand inconfigs: thenamein the package.json of its folder, else the folder's name, soprojects: ['packages/*']names its projects@trading/pricingorledgerinstead of"". An inline project without a name is named after its place among the inline projects, as0, 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 adependencyHashof everything it runs in the project, beside the unchangedbodyHash: 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 andtest.use()values ask for, with the fixtures those ask for,autoones and overrides of Playwright's own, through everyextend()andmergeTests(), 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'svi.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.dependencieslists 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,hasUnfollowedDependenciesistrueand the newdependency-not-followedwarning says where, once per place.#65
31a9bee---related <file>and therelatedfilter offilterInventory()keep the tests a change to a file can affect: those whosedependenciesinclude 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, sogit 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--rootis a folder in the repository.
0.5.0
Minor Changes
#51
acec7e7- Each file record has a newconfigkey: 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 Vitestprojectsthe project that does, read from Playwright'stestDir,testMatch,testIgnoreand.gitignorefiles, and from Vitest'sinclude,exclude,includeSource,typecheck.includeandbenchmark.includewith each version's defaults. Before, the nearest config was taken, which is wrong for a root config whoseincludecovers packages that have their ownvite.config.ts. A file with tests that no config runs gets the newfile-not-runwarning.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 bybenchmark.includeare markedisBenchmark, in place of the default*.bench.*and*.benchmark.*names. The config reader now reads regular expressions and paths built from__dirname,__filenameorimport.metawithpath.join(),path.resolve(),path.dirname(),fileURLToPath()andnew URL().#50
3e55445- The output lists the configs the scanned files use in a new top-levelconfigskey, and asconfiglines in JSON Lines. A file uses the nearestplaywright.config.*,vitest.config.*orvite.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, andextendslists the files it takes settings from through imports, such as a shared base config.Vitest's globals now come from
test.globalsin the config a file uses, read throughdefineConfig(),mergeConfig(), spreads, constants and imported base configs. Before, anyglobals: truein 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 avite.config.tsnext to avitest.config.ts. Soglobals-not-enabledcan now appear where it didn't, and go away where a base config turns globals on. Atest.globalsthe scan can't work out without running the config, and a config it can't read, get the newconfig-value-unknownwarning.#55
a714612- Run settings now come also from the config a file uses: Playwright'stimeout,retriesandrepeatEach, and Vitest'stestTimeout,retryandrepeats, where the file sets none. NewtimeoutSource,retriesSourceandrepeatsSourcekeys say where each value comes from:test,suite,fileorconfig, ornullwhen nothing sets it. A test takes the settings of the projects that run it, after theirgrep. When those projects disagree, the config sets the value under a condition, as inprocess.env.CI ? 2 : 0, or the scan can't work out the projects, the value isnullwith its sourceconfig. For a value under a condition,timeoutConfigText,retriesConfigTextandrepeatsConfigTexthold the config's text for it, soretries: process.env.CI ? 2 : 0reads as written. Playwright'sfullyParalleland Vitest'ssequence.concurrentmake testsisParallelwhere the file sets no mode, when every project that runs the test sets it.A
.onlyin a Playwright file whose config setsforbidOnlygets the newforbidden-onlyerror, since the run then fails before any test runs. WhenforbidOnlydepends on a condition, as in!!process.env.CI, it is a warning that quotes the condition.#59
aeb3eb1- Vitest tags the config defines intest.tagsnow apply to the tests that carry them, as Vitest applies them. Theirskip,todo,failsandonlyare merged with the test's own and those a describe passes down, and Vitest's order,onlyoverskipovertodo, gives the state, with the newstateSourcevalueconfigwhen a tag sets it. Theirconcurrent,timeout,retry,repeatsandmetaset those keys where the test sets none: from Vitest 5 over a describe's options, and in Vitest 4.1 under them. The lowestprioritywins between tags, and a Vitest 5 project's owntagsreplace those of the config it extends.A tag the config doesn't define fails the file in Vitest unless
strictTagsis off, also when there is no config, so it now gets the newundefined-tagerror, and the file's tests arenotLoaded; in a function or under a condition it is a warning, as that code may not run. Theconfig-may-change-statewarning now shows only when the scan can't work out the config's tags.#54
c610789- Each test record has a newprojectskey: the names of the projects that run the test, of the config its file uses. For Playwright, those whosetestDir,testMatchandtestIgnoreinclude the file, less those whosegreporgrepInvertleaves 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 asunit (chromium). It is[]when no project runs the test, andnullwithout a config or when the scan can't tell. Config records list their projects inprojects, each with itsname,testDirand Playwright'sdependencies.#53
b9471ec- Glob patterns are optional, inscan()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 aconfig-value-unknownwarning that says to give patterns, and a scan without patterns and without a config says so inno-files-matched. An empty list of patterns is still an error.
Patch Changes
0.4.1
Patch Changes
#48
6549682- A hook given a function the file declares, as intest.beforeEach(skipOnCI)orbeforeEach(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 theirfixtures. Before, they were missed. A test or hook function passed by name no longer gets astate-in-helperwarning 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 anunresolved-test-importerror. A folder given as the pattern with a long run of slashes, as intests////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 thebeforeEach,afterEachandaroundEachhooks around it take from the context, without Vitest's own keys),expectCount(expect(),expect.soft()andexpect.poll()calls in the body), Vitest'sexpect.assertions(n)andexpect.hasAssertions()asexpectedAssertionsandexpectsAssertions,hasEmptyBody, and Playwright'stest.step()titles insteps. Vitest'sannotate()from the test context adds annotations. Vitest 5 benchmarks, in*.bench.tsfiles or using thebenchfixture, haveisBenchmarkand abenchmarkCountin the summary. New warnings:empty-titlefor a test or describe titled'', andbench-outside-benchmark-file.#40
f462ee0- The output has a record for each scanned file infiles, and counts hooks:hookson 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'saroundEachandaroundAll). Hooks a helper function registers count where it is called. JSON Lines output has afileline 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,isSlowandslowCondition,retries,retryDelay,retryConditionandrepeats. Playwright's come fromtest.describe.configure({ timeout, retries }),test.setTimeout()andtest.slow()in a describe, abeforeEachor the test body; Vitest's from thetimeout,retryandrepeatsoptions, the timeout after the body, and the options a describe passes down. A test gets the value from the nearest place that sets it, andnullwhen 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 anunresolved-optionwarning.
0.3.0
Minor Changes
#37
5aeb139---fieldskeeps only the named keys of each test, andid, 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 aspickTestFields().#37
5aeb139- Filters keep only the tests a question is about:--state,--tag,--grep(a regular expression on the full name, ignoring case),--onlyand--without-reason, as in--state skip --state fixmefor 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 asfilterInventory().#37
5aeb139---format jsonlwrites the inventory as JSON Lines: aninventoryline, one line per suite, test and diagnostic, and asummaryline, each marked with atypekey. Tools that read one record per line, such asgrepor DuckDB, no longer need the whole document in memory. TheInventoryLinetype 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 inexport const test = defineDeskTest('equities'), is followed: MSW's test files import such atest. 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 anunresolved-test-importerror 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, asdescribe.sequential('title', fn)in Vitest 5,test('title', fn, { retry: 2 })from Vitest 4 ortest.only.skip('title', fn), is listed as a plain test or describe without the part that fails. Its tests were missing before; now they arenotLoaded, 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, sotest.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 itsskipoption down to the tests and describes inside, where it wins over todo, also when the describe's own.onlykeeps the describe itself from being skipped.
0.2.1
Patch Changes
#28
04ff6d2- A skip in acatchblock, such ascontext.skip()when a test server can't start, is conditional, with thecatchclause as its condition, as incatch (error). It was recorded as an unconditional skip before. A test declared in acatchblock getsisInCondition: 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..gitfolders are always left out, likenode_modules.#31
631cc6b- Workspace packages are found from bothpnpm-workspace.yamland theworkspacesofpackage.json. When a repository had both, as after a move to pnpm that kept the old list, onlypackage.jsonwas read, and a package listed only inpnpm-workspace.yamlgot anunresolved-test-importerror.#30
968e2bc- A call through an imported name that reads like a test function is followed, and reported withunresolved-test-importwhen it can't be, also when it goes through a member the scan doesn't know, as init.effect('title', fn)from@effect/vitest, or passes a timeout after the body, as intest('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 byexport *, as in JavaScript:export const it = ...next toexport * from 'vitest'is no longer read as Vitest'sit.#28
04ff6d2- Tests on a test object that a function returns are found, as inconditionalTest({ min: 22 })('title', fn)orconst 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, asit.skiporit, 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 alocal-test-objectwarning.
0.2.0
Minor Changes
#18
4698945- A customtestobject is followed through as many files as it takes: a fixtures file may re-export it, as inexport * from './base', or build it withextendon one imported from another file. When it can't be followed, theunresolved-test-importmessage says where the chain of files ends. A test file that builds its own test object from an imported one, as inconst test = base.extend({...}), no longer gets alocal-test-objectwarning 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 newdeclaredAtkey on test and suite records gives the file and line where the helper writes the test,nullfor code in the scanned file. Records of tests in helpers get new ids, as their describes change. Thetest-in-functionwarning 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'stestfromplaywright-bdd.#18
4698945- In Playwright, a test in a loop whose title path is the same on each pass gets aduplicate-titleerror, and the tests in its file arenotLoaded, 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 itextends, packages included, and${configDir}filled in. Without atsconfig.json, the nearesttsconfig.base.jsonis used, as in an Nx workspace, and a solution-style tsconfig takes its aliases from the projects itreferences.#18
4698945- Workspace packages are followed before an install, from theworkspacesofpackage.jsonor frompnpm-workspace.yaml. When a package'sexports,typesormainpoint to build output that doesn't exist yet, as indist/esm/index.js, the source next to it insrc/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, astate-in-helperwarning 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 withtest.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 callsvi.mock,vi.unmockorvi.hoistedanywhere but its top level gets aremoved-apierror at the call, and its tests arenotLoaded, 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, theno-files-matchedmessage 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 theno-files-matchedwarning, not aread-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 newtest-in-functionwarning 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 theapproximate-framework-versionwarning, since the newest rules of its major apply.#5
c812450- Every test in a Vitest file that fails to load is nownotLoaded, as Vitest runs none of them: a chain Vitest doesn't have,sequentialorbenchfrom Vitest 5, or options as the third argument from Vitest 4. A call tobenchis reported where it is made, not where it is imported.