Skip to content

Commit ba84480

Browse files
author
Tigran Hakobyan
authored
docs: Add --filter to the CLI doc (#11357)
1 parent 68183e8 commit ba84480

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

docs/CLI.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ Make calling deprecated APIs throw helpful error messages. Useful for easing the
180180

181181
Alias: `-e`. Use this flag to show full diffs and errors instead of a patch.
182182

183+
### `--filter=<file>`
184+
185+
Path to a module exporting a filtering function. This method receives a list of tests which can be manipulated to exclude tests from running. Especially useful when used in conjunction with a testing infrastructure to filter known broken.
186+
183187
### `--findRelatedTests <spaceSeparatedListOfSourceFiles>`
184188

185189
Find and run the tests that cover a space separated list of source files that were passed in as arguments. Useful for pre-commit hook integration to run the minimal amount of tests necessary. Can be used together with `--coverage` to include a test coverage for the source files, no duplicate `--collectCoverageFrom` arguments needed.

website/versioned_docs/version-25.x/CLI.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ Make calling deprecated APIs throw helpful error messages. Useful for easing the
184184

185185
Alias: `-e`. Use this flag to show full diffs and errors instead of a patch.
186186

187+
### `--filter=<file>`
188+
189+
Path to a module exporting a filtering function. This method receives a list of tests which can be manipulated to exclude tests from running. Especially useful when used in conjunction with a testing infrastructure to filter known broken.
190+
187191
### `--findRelatedTests <spaceSeparatedListOfSourceFiles>`
188192

189193
Find and run the tests that cover a space separated list of source files that were passed in as arguments. Useful for pre-commit hook integration to run the minimal amount of tests necessary. Can be used together with `--coverage` to include a test coverage for the source files, no duplicate `--collectCoverageFrom` arguments needed.

website/versioned_docs/version-26.x/CLI.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ Make calling deprecated APIs throw helpful error messages. Useful for easing the
180180

181181
Alias: `-e`. Use this flag to show full diffs and errors instead of a patch.
182182

183+
### `--filter=<file>`
184+
185+
Path to a module exporting a filtering function. This method receives a list of tests which can be manipulated to exclude tests from running. Especially useful when used in conjunction with a testing infrastructure to filter known broken.
186+
183187
### `--findRelatedTests <spaceSeparatedListOfSourceFiles>`
184188

185189
Find and run the tests that cover a space separated list of source files that were passed in as arguments. Useful for pre-commit hook integration to run the minimal amount of tests necessary. Can be used together with `--coverage` to include a test coverage for the source files, no duplicate `--collectCoverageFrom` arguments needed.

0 commit comments

Comments
 (0)