Examples (8)
Run all available tests
Run the test suites from the given files
jest path/to/file1 path/to/file2 ...Run the test suites from files within the current and subdirectories, whose paths match the given `regex`
jest regex1 regex2 ...Run test suites related to a given source file
jest --findRelatedTests path/to/source_file.jsRun test suites related to all uncommitted files
jest --onlyChangedWatch files for changes and automatically re-run related tests
jest --watchDisplay help
jest --helpmade by @shridhargupta | data from tldr-pages