spire-plugin-jest
Hooks
-
setup
Addstest
command and prepares jest arguments. -
precommit
Adds jest linter. -
run
Runs jest tests.
Options
-
Plugin
['spire-plugin-jest', options]
-
command
<string> Command to run jest on. Defaults totest
. -
jestConfig
<string> Default [jest] configuration. Defaults to./jest-preset.js
-
allowCustomConfig
<boolean> Whether to allow user-provided config. If this option isfalse
and there's custom jest config found it will throw an error. Defaults totrue
. -
glob
<string> Linter glob to run on precommit. Defaults to*.js
.
-
-
CLI
npx spire test [args]
- Passes all arguments as-is to jest.