Skip to content

Jest

Enabled

This plugin is enabled if "jest" is listed in "dependencies" or "devDependencies" in package.json.

Default configuration

If this plugin is enabled, the following configuration is added automatically:

{
"jest": {
"config": [
"jest.config.{js,ts,mjs,cjs,json}",
"package.json"
],
"entry": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
]
}
}

Depending on local configuration, plugins may modify the defaults as shown.

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 jest binary. Configuration:

config: true

The configuration was generated from source code. Also see Script Parser.

Generated from source

This page was generated from the jest plugin source code.

ISC License © 2024 Lars Kappert