2018-11-20 21:22:00 +00:00
|
|
|
# jest
|
|
|
|
|
|
|
|
> A zero-configuration JavaScript testing platform.
|
2019-06-05 08:55:41 +01:00
|
|
|
> More information: <https://jestjs.io>.
|
2018-11-20 21:22:00 +00:00
|
|
|
|
|
|
|
- Run all tests:
|
|
|
|
|
|
|
|
`jest`
|
|
|
|
|
2019-09-03 21:27:34 +01:00
|
|
|
- Run tests whose names match the regex pattern:
|
2018-11-20 21:22:00 +00:00
|
|
|
|
|
|
|
`jest -t {{spec_name}}`
|
|
|
|
|
2019-09-03 21:27:34 +01:00
|
|
|
- Run tests related to uncommitted files:
|
2018-11-20 21:22:00 +00:00
|
|
|
|
2019-09-03 21:27:50 +01:00
|
|
|
`jest -o`
|
2018-11-20 21:22:00 +00:00
|
|
|
|
2019-09-03 21:27:34 +01:00
|
|
|
- Watch files for changes and re-run related tests:
|
2018-11-20 21:22:00 +00:00
|
|
|
|
|
|
|
`jest --watch`
|
|
|
|
|
|
|
|
- Show help:
|
|
|
|
|
|
|
|
`jest --help`
|