Skip to content

Commit

Permalink
docs: mention -t, --testNamePattern option on filtering page (#4252)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 6, 2023
1 parent 373e885 commit c05b11a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ basic-foo.test.ts
basic/foo.test.ts
```

You can also use the `-t, --testNamePattern <pattern> ` option to filter tests by full name. This can be helpful when you want to filter by the name defined within a file rather than the filename itself.

## Specifying a Timeout

You can optionally pass a timeout in milliseconds as third argument to tests. The default is 5 seconds.
Expand Down

0 comments on commit c05b11a

Please sign in to comment.