Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 416 Bytes

filter-test-run-by-title.md

File metadata and controls

18 lines (11 loc) · 416 Bytes

Filter test run by title

To filter tests when running jest, add the -t option.

jest -t 'title of test'

This will skip tests with titles that don't match.

When running with npm test, remember the --to pass along the extra option.

npm test -- -t'title of test'

See this StackOverflow post.