tldr/pages/common/jest.md

25 lines
382 B
Markdown
Raw Normal View History

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`
- Run only tests with a name that matches the regex pattern:
`jest -t {{spec_name}}`
- Run only tests relating to uncommitted files:
`jest --onlyChanged`
- Watch files for changes and rerun related tests:
`jest --watch`
- Show help:
`jest --help`