mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 06:15:41 +02:00
jest: add page (#2528)
This commit is contained in:
parent
125fe71924
commit
0c6cca1d98
1 changed files with 23 additions and 0 deletions
23
pages/common/jest.md
Normal file
23
pages/common/jest.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# jest
|
||||||
|
|
||||||
|
> A zero-configuration JavaScript testing platform.
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue