Skip to content

Commit

Permalink
docs: add vitest 2.2 mention
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Dec 1, 2024
1 parent beed808 commit a6cae3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/guide/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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.

You can also specify the test by filename and line number:
Since Vitest 2.2, you can also specify the test by filename and line number:

```bash
$ vitest basic/foo.test.ts:10
Expand All @@ -37,7 +37,6 @@ Note that you have to specify the full filename, and specify the exact line numb
$ vitest foo:10
$ vitest basic/foo.test.ts:10-25
```

:::

## Specifying a Timeout
Expand Down

0 comments on commit a6cae3c

Please sign in to comment.