Skip to content

Commit 33e70e3

Browse files
authored
refine the grepInvert doc (microsoft#36883)
1 parent 6ed8a8d commit 33e70e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/test-api/class-testproject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Filter to only run tests with a title matching one of the patterns. For example,
134134
* since: v1.10
135135
- type: ?<[RegExp]|[Array]<[RegExp]>>
136136

137-
Filter to only run tests with a title **not** matching one of the patterns. This is the opposite of [`property: TestProject.grep`]. Also available globally and in the [command line](../test-cli.md) with the `--grep-invert` option.
137+
Filter to only run tests with a title **not** matching any of the patterns. This is the opposite of [`property: TestProject.grep`]. Also available globally and in the [command line](../test-cli.md) with the `--grep-invert` option.
138138

139139
`grepInvert` option is also useful for [tagging tests](../test-annotations.md#tag-tests).
140140

packages/playwright/types/test.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ interface TestProject<TestArgs = {}, WorkerArgs = {}> {
305305
grep?: RegExp|Array<RegExp>;
306306

307307
/**
308-
* Filter to only run tests with a title **not** matching one of the patterns. This is the opposite of
308+
* Filter to only run tests with a title **not** matching any of the patterns. This is the opposite of
309309
* [testProject.grep](https://playwright.dev/docs/api/class-testproject#test-project-grep). Also available globally
310310
* and in the [command line](https://playwright.dev/docs/test-cli) with the `--grep-invert` option.
311311
*

0 commit comments

Comments
 (0)