Skip to content

Vitest

Enabled

This plugin is enabled when there’s a match in dependencies or devDependencies in package.json:

  • vitest

Default configuration

This configuration is added automatically if the plugin is enabled:

{
"vitest": {
"config": [
"vitest*.config.{js,mjs,ts,cjs,mts,cts}",
"vitest.{workspace,projects}.{js,mjs,ts,cjs,mts,cts,json}"
],
"entry": [
"**/*.{bench,test,test-d,spec}.?(c|m)[jt]s?(x)"
]
}
}

Your custom config or entry options override default values, they are not merged.

See Plugins for more details.

ISC License © 2024 Lars Kappert