Skip to content

Commit c4e8dd3

Browse files
ArturT3v0k4
andauthored
Apply suggestions from code review
Co-authored-by: Riccardo <riccardo.odone@gmail.com>
1 parent 7ae4977 commit c4e8dd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docusaurus/docs/jest/cookbook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ npx knapsack-pro-jest --config=jest.config.e2e.js
4646

4747
Each CI node executes multiple batches of tests in Knapsack Pro [Queue Mode](../overview/index.mdx#queue-mode-dynamic-split), and each batch starts a new Jest process. By default, a coverage report generated by each batch overwrites the previous one, which can lead to incomplete coverage data.
4848

49-
To avoid this, you can configure Knapsack Pro to generate a separate coverage report for each batch by setting the environment variable:
49+
To avoid this, you can configure Knapsack Pro to generate a separate coverage report for each batch by setting the following environment variable:
5050

5151
```bash
5252
export KNAPSACK_PRO_COVERAGE_DIRECTORY=coverage
5353

5454
npx knapsack-pro-jest --coverage
5555
```
5656

57-
This ensures each batch creates a unique subfolder for its coverage report, preventing overwrites.
57+
This ensures each batch creates a unique subfolder for its coverage report, preventing overwrites:
5858

5959
```
6060
coverage
@@ -86,7 +86,7 @@ coverage
8686
└── lcov.info
8787
```
8888

89-
To merge the reports you may consider [this script](https://github.com/jestjs/jest/issues/2418#issuecomment-478932514).
89+
You can merge the reports with [this script](https://github.com/jestjs/jest/issues/2418#issuecomment-478932514).
9090

9191
## Generate XML reports
9292

docusaurus/docs/jest/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ Make sure [`KNAPSACK_PRO_TEST_FILE_PATTERN`](reference.md#knapsack_pro_test_file
5151

5252
## Missing Jest coverage data
5353

54-
Please see the [Jest coverage configuration](cookbook.md#generate-code-coverage-reports).
54+
See [how to configure code coverage](cookbook.md#generate-code-coverage-reports).

0 commit comments

Comments
 (0)