@dotcom-tool-kit/jest v3.4.0
@dotcom-tool-kit/jest
A plugin to run Jest tests. This plugin uses jest-cli to run the tests. You can configure this plugin by specifying the path to the Jest config path.
Installation
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/jest
And add it to your repo's .toolkitrc.yml
:
plugins:
- '@dotcom-tool-kit/jest'
Options
Key | Description | Default value |
---|---|---|
configPath | Path to the Jest config file | use Jest's own config resolution |
Tasks
Task | Description | Preconfigured hook |
---|---|---|
JestLocal | runs jest to execute tests | test:local |
JestCI | runs jest to execute tests in the CI with the --ci option | test:ci |
Tips
A common use case is to configure test:local
and test:ci
in your .toolkitrc.yml
to run the Eslint
task then the relevant Jest task:
hooks:
test:local:
- Eslint
- JestLocal
test:ci:
- Eslint
- JestCI
9 days ago
9 days ago
10 days ago
4 months ago
5 months ago
7 months ago
8 months ago
10 months ago
10 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago