Incomplete runs and limits
What incomplete means
Section titled “What incomplete means”incomplete is true when the analyzer records a run-level cause such as an unreadable config, an
unresolved table or an exhausted rule-comparison budget. Findings then cover only the work completed.
The analyzer limits how much work it spends looking up names in declarations across each file
(262,144 binding-pattern node visits). When a test’s behavior trace reaches that limit, the file
lists incomplete-trace and the test remains eligible for exact duplicate comparison. If the file
has more than one comparable declaration and any trace-based rule (near-duplicate-test,
subsumed-test or parameterization-candidate) is enabled, those trace rules skip that file and
the run sets incomplete with bindingScanExhausted. Rows from one declaration alone, or an
unsupported trace shape alone, leave the run complete.
How each reporter says so:
| Reporter | Where |
|---|---|
terminal |
A banner before the findings. |
html |
A banner before the findings, plus incompleteCauses in the page’s JSON island. |
json, jsonl |
The incomplete flag, plus incompleteCauses, which enumerates the reasons, counted. Excluded files are listed, up to 10,000; see Excluded files. |
sarif |
runs[0].invocations[0].properties.incomplete and incompleteCauses, keyed as in the json report. |
--fail-on-incomplete turns the flag into a non-zero exit. See Blind spots for
files with exclusions that leave no comparable test bodies.
Calls through logical expressions with a recognized registration result are counted as unresolved.
Conditional result arms nested inside those expressions are followed, without evaluating guards.
Logical guards are not evaluated, so even an inactive branch can conservatively make a run
incomplete. A registration value used only as the left operand of && does not supply its result.
Some logical results, including local aliases of framework functions, are not yet recognized.
Choosing which causes count
Section titled “Choosing which causes count”--fail-on-incomplete or --fail-on-incomplete=any counts every cause, because the classes call
for different responses.
=readscounts only causes meaning the project could not be fully read: unreadable, oversized or partially read files, undetermined config, tests whose context could not be resolved, and missing prerequisites.=limitscounts only the analyzer’s own bounded work being capped: rule comparison and coverage budgets, the hook-scan budget, the binding allowance for enabled trace rules, the memory budget, and truncated findings. When the conditions above setbindingScanExhausted, it counts for=anyand=limitsand leaves=readsunaffected.
The value needs the =; with a space, reads would be read as the path.
Missing prerequisites
Section titled “Missing prerequisites”Imports are resolved on disk. When a file or directory the project needs for that is absent, the run
is incomplete and says which one, instead of leaving imports unresolved without a word. Each entry
of incompleteCauses.missingPrerequisites (json, jsonl, sarif, html) has a kind, a path,
a fix and unresolvedImports, and the terminal and HTML banners print it as a sentence:
kind |
Reported when | fix |
|---|---|---|
tsconfig-extends |
A tsconfig’s extends target does not exist. Nothing under that tsconfig then resolves, relative imports included. |
nuxt prepare for a path under .nuxt in a project with a nuxt.config.* or a nuxt dependency; the install command for a package target; otherwise generate or restore this file. |
tsconfig-unreadable |
The target exists but is not valid JSON, or Nuxt fallback needs a generated target that cannot be read. An empty file or one holding only comments loads as an empty config and is not reported. Automatic discovery skips I/O failures in existing user-config graphs, including generated targets they extend or reference. | generate or restore this file. |
node-modules |
A project’s package.json lists dependencies, and an import of a package from a file in that project could not be resolved, where node_modules is missing or empty in that file’s directory and in every parent directory. One entry per such project directory, with its own path (relative to the analyzed root, such as packages/web/node_modules), count and install command. vitest, node: and Node core module imports do not count, nor do imports spelled as something other than a package (relative and absolute paths, # imports, ~/ and @/ aliases, URLs, drive paths). An alias written like a package (@app/missing) cannot be told apart by its spelling and does count. |
pnpm install, bun install, yarn install or npm ci for the nearest pnpm-lock.yaml, bun.lock/bun.lockb, yarn.lock or package-lock.json; otherwise install the dependencies. |
unresolvedImports counts the import resolutions that failed for that reason, once per analyzed
file and specifier. Nuxt projects without a root tsconfig also report missing generated configuration
when automatic discovery needs it. Nuxt discovery stops at the nearest package.json, even when
it lists no dependencies; a workspace member does not inherit an ancestor Nuxt project through
that boundary. Missing-dependency reporting instead uses the nearest package.json at or above
the file that lists dependencies, so a member with none uses an ancestor manifest for that report.
Projects without extends or Nuxt fallback do not need generated TypeScript configuration.
Missing installed dependencies are reported only for package-style imports, not relative ones.
Only resolution failures are reported, so a tsconfig that is merely unusual is silent.
Limits: tsconfig detection relies on what the resolver reports. Automatic discovery skips I/O
failures in existing user-config graphs (invalid UTF-8, no read permission), including generated
targets reached through extends or references. Nuxt fallback loads its generated graph
explicitly, so those I/O failures are reported when no user config prevents fallback.
Windows verbatim disk and UNC importer prefixes are normalized for resolver lookup;
file confinement still compares canonical identities. The failures are collected process-wide and
drained once per run, so the reports describe one analysis per process.
Blind spots
Section titled “Blind spots”A file is blind when it has an excluded test and no comparable test body. Empty bodies and tests
without callbacks still count toward testsTotal. Name rules can still report findings for those
tests. Blind spots are named on stderr, worst first, and counted in blindFiles in the json and
jsonl summaries. The unresolved exclusions are gated by --fail-on-incomplete=reads.
Excluded files
Section titled “Excluded files”The terminal names at most ten blind files and twenty diagnostics. The json and jsonl
reports list the files that were excluded from comparison in whole or in part, up to 10,000 of
them, each with a reason code, so a run that excluded half a project can be triaged from the report
alone. Past the cap the files with the fewest excluded tests are left out of the list and counted in
exclusions.omitted; the summary totals always count every file.
json:excludedFiles, sorted by path.jsonl: oneexcluded-filerecord per file, after the findings and before the summary; a run that excluded nothing writes none, apart from files listed only underincomplete-trace, whosetestsExcludedis0.- Each entry has
path,reason,otherReasons,detail(the cause; for a refused helper, the sentence the terminal prints),testsExcluded,testsTotalandeveryTestExcluded.reasonis the first reason recorded for the file;otherReasonsholds the rest in the order of the table below. An import that left the analysis root is listed ahead of the helper refusal it causes. The reasons read from a test’s own context are added to the file’s list:mock-factory-unreadableandfixture-unreadablewhenever a test has one (a test can have both), andunresolved-context(any other unresolved fact) only when no helper refusal already accounts for the excluded tests. The list covers the whole analyzed corpus, whatever--changed-sincescopes the findings to. testsTotalis0for a file that was never parsed, and for a file whose tests all come from a refused helper: those tests are not counted anywhere.everyTestExcludedmatches the files counted byblindFiles.- The summary’s
exclusionscounts every file by primary reason (files,tests,omittedandreasons, most files first), so it stays exact when the list is capped. The list holds at most 10,000 files, keeping those with the most excluded tests;omittedcounts the rest. - On the terminal, stderr adds the five largest reasons with file and test counts, then “and N more
kind(s)”, and points at these reports.
htmlandsarifcarryincompleteCausesonly. - A file no project governs, and a file in an unsupported language, are deliberate classification rather than exclusions. They stay in the diagnostics and are not listed.
| Code | Meaning |
|---|---|
helper-export-unreadable |
A project import could not be parsed, or import analysis reached its depth or aggregate work limit, so imported effects and registrations are unknown. |
helper-effects-unproved |
A runner call in the scope was not expanded (see Imported runners), so the tests around it are excluded with it. |
mock-factory-unreadable |
A vi.mock factory could not be read. |
fixture-unreadable |
A test.extend fixture value could not be read. |
unresolved-context |
Another ambient fact of a test could not be resolved: a dynamic title or one longer than 4,096 bytes, an unreadable .each table or nested config, or a body deeper than the analyzer’s recursion cap (whose behavior trace was cut short and must not be compared). |
registered-inside-function |
A test is registered inside a function that is neither a suite callback nor an iteration callback, so what it registers depends on a caller. |
order-dependent-state |
A test reads a binding that another test writes, that a hook updates from its previous value, or that a hook outside the test’s own before-hooks sets (another suite’s hook, or an afterEach that does not restore the declared value), and nothing assigns it before each test: equal tests can observe different values depending on which ran first. |
named-callback |
A test’s callback is passed by name rather than written inline; the analyzer does not read it. |
unreadable-callback |
A spread argument may hide the callback a test runs. |
unsupported-benchmark |
A top-level bench is counted but not compared: its file is not one benchmark.include collects, its project’s Vitest is not known to be 4 (Vitest 5 has no top-level bench), its file calls a member Vitest 4’s bench does not have (such as each, for or concurrent), or its options are not plain literal data and so may hold a setup or teardown whose effects are not read. |
incomplete-trace |
A test holds an unsupported shape, or collecting its trace bindings would exceed the file’s allowance of 262,144 binding-pattern node visits. The test remains eligible for exact duplicate comparison. When a binding refusal occurs in a file with more than one comparable declaration and an enabled near-duplicate-test, subsumed-test or parameterization-candidate rule, those trace rules skip that file and the run sets bindingScanExhausted. Allowances spent only on optional diagnostics or an unsuccessful runner expansion do not count. |
registered-elsewhere |
A wrapper call, a call of a function that returns a registration function, alone, inside a returned object, array or conditional, or as another such function’s result (return test.extend({...}), return { it: test }), or through what it returns (or, for one defined in the file, resolves to), a call through the test a suite callback receives (describe('s', (test) => ...)), an import of a module that registers while it loads, or a registration function read as a value registers tests the file does not spell. One test is counted per such call, import or read. A call of a helper found to register only hooks is not counted: it registers no test, and its hooks are part of the context of the tests around it. Neither is a call that runs only while a test, row or hook callback runs, directly or through a local function only such code calls: Vitest has collected the file by then. |
parse-error |
The parser reported errors. |
unsupported-source |
The source type is unsupported. |
source-limit |
The nesting or syntax-unit limit refused the file. |
extraction-failed |
Analysis of the file could not run, or panicked and was recovered. |
package-manifest-unreadable |
Module resolution needed a package.json that could not be read as a UTF-8 regular file of at most 1 MiB. The affected test file is excluded; refused metadata cannot select an ancestor manifest or an index fallback. |
import-outside-root |
An import resolved outside the analysis root and was not read. |
globals-undetermined |
The governing project’s globals setting could not be determined. |
file-too-large |
The file exceeds the source-size limit and was not read. |
project-config-unreadable |
Project configuration could not be read, so no project could be matched and the file was skipped. |
unreadable |
The file could not be read. |
memory-budget |
The memory budget was reached before the file was analyzed. |
Source limits
Section titled “Source limits”Source files are limited to 8 MiB. Before parsing, the analyzer also refuses lexical bracket nesting deeper than 256 and more than 36,864 raw syntax units.
- The units count opening brackets, operator, member, label and escape punctuation, and recursive control and type keywords, including occurrences in strings, comments and regexes.
- Nonnegative integer payloads and commas do not consume units.
- The bound is conservative: lexical ambiguity must not hide stack-exhausting input. A wide generated file or punctuation-heavy literal can therefore exceed it even when its actual syntax is shallow.
- These are analyzer resource limits, not JavaScript or Vitest restrictions.
Refused files make analysis incomplete and produce diagnostics; findings in other files remain
available. First-party imported helpers use the same preflight limits. Use
--fail-on-incomplete=reads (or --fail-on-incomplete) to make refused input an operational
failure. Admitted extraction runs on an explicitly sized worker stack; a larger stack alone would
not protect against unbounded input.
Import analysis allows at most 32 uncached import levels, 64 uncached module-analysis attempts per
pass, three passes (192 attempts total), and 8 MiB of imported source per root inventory. A pass is
retried only when it stopped at the attempt limit, added a fully proved module to the cache, and
encountered no unreadable import, path-confinement refusal or refused package manifest. Completed
cached proofs can be reused without spending that work again; incomplete ancestor proofs are never
reused. The source-byte budget is shared by every pass rather than reset by a retry. Reaching a
final limit stops further import analysis for that inventory, excludes the affected file’s tests
from comparison, and marks the run incomplete, including when the file has no visible local tests.
Independent files remain analyzable. These limits produce helper-export-unreadable diagnostics
that name the exhausted bound, final refused root-relative module, depth, aggregate analysis count
and aggregate admitted source bytes. They are covered by --fail-on-incomplete=reads.
Memory budget
Section titled “Memory budget”The run reads whole files until the analyzer holds more than its memory budget: 2,048 MiB by
default, set with --max-memory <MiB> and removed with --no-memory-cap. The figure is the retained
heap --debug-memory reports plus source text kept for the HTML report.
The figure includes retained cases, suites, hook chains, saved sites, blind-file
records, both export caches and the index of inline suppression lines. Its hash-table estimate counts usable entry-capacity payload
and live owned keys/values; private spare buckets, control bytes and allocator metadata remain
outside that estimate. Temporary parser state is not retained engine heap. The separate RSS
backstop includes resident allocations outside this accounting.
A second backstop checks current process RSS after each file and stops above 1.5 times the budget on Linux, macOS and Windows.
- RSS includes allocator overhead and other resident allocations; it is separate from the lifetime
peak reported by
--debug-memory. - It is an absolute process measurement: it includes the startup footprint and memory still resident after the baseline pass, even after baseline data is dropped.
- A budget whose RSS ceiling is below that footprint can stop the current pass after its first file, even when little test data is retained.
- If the OS sample is unavailable, the retained-byte check still applies.
--no-memory-capdisables both checks.
The checks run at file boundaries, so a single file or the later analysis phase can exceed either
threshold. Files after that point are not analyzed and are counted in filesOverMemoryBudget
(json, jsonl, sarif and the HTML island all carry it; the terminal and HTML banners also name
the cause). Every rule runs over the files read, with the same findings as a run over exactly those
files. --baseline-from-ref applies the same budget to the base revision.
Back to the documentation index.