Optional ReadonlybailStop running tests after certain number of failures.
Optional ReadonlycoverageCoverage output directory.
Optional ReadonlycoverageCoverage enabled.
Optional ReadonlycoverageCoverage provider type.
Optional ReadonlycoverageCoverage reporters.
Optional ReadonlyenvironmentThe environment that will be used for testing.
Optional ReadonlyexcludeA list of glob patterns that should be excluded from your test files.
Optional ReadonlyglobalsRegister apis globally. If you prefer to use the APIs globally like Jest, set to true.
Optional ReadonlyincludeA list of glob patterns that match your test files.
Optional ReadonlyisolateRun tests in an isolated environment. This option has no effect on vmThreads pool.
Disabling this option might improve performance if your code doesn't rely on side effects.
Optional ReadonlypassVitest will not fail, if no tests will be found.
Optional ReadonlypoolPool used to run tests in.
Optional ReadonlyprintAlways print console traces when calling any console method.
Optional ReadonlyslowThe number of milliseconds after which a test or suite is considered slow.
Optional ReadonlytypecheckTool to use for type checking. Checker should implement the same output format as tsc.
Optional ReadonlytypecheckEnable typechecking alongside your regular tests.
Optional ReadonlytypecheckPath to custom tsconfig, relative to the project root.
Optional ReadonlyupdateUpdate snapshot files. This will update all changed snapshots and delete obsolete ones.
Vitest Config.
See
https://vitest.dev/config/