jest
A zero-configuration JavaScript testing platform. tldr-pages
On several platforms
Several platforms
Run all available tests
jestIdentifyRun the test suites from the given files
jest path/to/file1 path/to/file2 ...IdentifyRun the test suites from files within the current and subdirectories, whose paths match the given regex
jest regex1 regex2 ...IdentifyRun the tests whose names match the given regex
jest --testNamePattern regexIdentifyRun test suites related to a given source file
jest --findRelatedTests path/to/source_file.jsIdentifyRun test suites related to all uncommitted files
jest --onlyChangedIdentifyWatch files for changes and automatically re-run related tests
jest --watchIdentifyDisplay help
jest --helpIdentify