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 about plugins and their entry and config options.

Shell commands

This plugin adds argument parsing for the vitest binary. Configuration:

config: true

Generated from source

This page was generated from the vitest plugin source code.

ISC License © 2024 Lars Kappert