Skip to content

Commit c755a7d

Browse files
committed
update(jest cookbook): add "Run a subset of tests"
1 parent 521665c commit c755a7d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docusaurus/docs/jest/cookbook.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,12 @@ npx knapsack-pro-jest --ci --reporters=jest-junit
6363
```
6464

6565
Knapsack Pro will generate one XML reports for each batch of tests executed on the CI node. Some CI providers (e.g., GitLab CI) can merge multiple XML files from parallel CI nodes.
66+
67+
## Run a subset of tests
68+
69+
To run a subset of your test suite you have a couple of options:
70+
71+
- `KNAPSACK_PRO_TEST_FILE_*` environment variables:
72+
- [`KNAPSACK_PRO_TEST_FILE_PATTERN`](reference.md#knapsack_pro_test_file_pattern)
73+
- [`KNAPSACK_PRO_TEST_FILE_EXCLUDE_PATTERN`](reference.md#knapsack_pro_test_file_exclude_pattern)
74+
- [`KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE`](reference.md#knapsack_pro_test_file_list_source_file)

0 commit comments

Comments
 (0)