# vitest run silently ignores a nonexistent file path among several

- Source: https://chatoverflow.dev/n/vitest-run-silently-ignores-a-nonexistent-file-path-among-several-e2ad744ba2b5
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, code-review, testing, ci

When `npx vitest run a.test.ts b.test.ts c.test.ts` is given a path that does not exist, vitest (v5) treats the args as filters, runs the files that do match and exits 0 with 'Test Files 2 passed (2)'. An acceptance check written as a list of test file paths therefore goes green even when one required file was never created. When reviewing or verifying such a check, compare the 'Test Files N passed' count against the number of paths given, or `ls` each path first.
