jest

jest

TLDR

Run all available tests

>_ jest
copy

Run the test suites from files whose paths match the given regex patterns

>_ jest [test_file1] [path/to/test_file2.js]
copy

Run the tests whose names match the given regex pattern

>_ jest --testNamePattern [spec_name]
copy

Run test suites related to a given source file

>_ jest --findRelatedTests [path/to/source_file.js]
copy

Run test suites related to all uncommitted files

>_ jest --onlyChanged
copy

Watch files for changes and automatically re-run related tests

>_ jest --watch
copy

Show help

>_ jest --help
copy

Copied to clipboard
free 100$ digital ocean credit