jest is a zero-configuration JavaScript testing platform.

# To run all available tests:
jest

# To run the test suites from files whose paths match the given regex patterns:
jest <test_file1> <path/to/test_file2.js>

# To run the tests whose names match the given regex pattern:
jest --testNamePattern <spec_name>

# To run test suites related to a given source file:
jest --findRelatedTests <path/to/source_file.js>

# To run test suites related to all uncommitted files:
jest --onlyChanged

# To watch files for changes and automatically re-run related tests:
jest --watch

# To show help:
jest --help