Skip to content

Commit af9ca67

Browse files
committed
docs: jest args
1 parent 61b21e6 commit af9ca67

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docusaurus/docs/jest/cookbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ You can merge the reports with [this script](https://github.com/jestjs/jest/issu
8282

8383
## Generate XML reports
8484

85-
You can generate [jest-junit](https://github.com/jest-community/jest-junit) reports with:
85+
You can generate [`jest-junit`](https://github.com/jest-community/jest-junit) reports with:
8686

8787
```bash
8888
export JEST_JUNIT_UNIQUE_OUTPUT_NAME=true
8989

90-
npx @knapsack-pro/jest --ci --reporters=jest-junit
90+
npx @knapsack-pro/jest --ci --reporters=default --reporters=jest-junit
9191
```
9292

9393
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.

docusaurus/docs/jest/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Use long options instead of short (e.g., `--updateSnapshot` instead of `-u`).
2121

2222
:::
2323

24-
You can pass all the [supported Jest CLI options](https://jestjs.io/docs/cli#options) as command-line arguments:
24+
You can pass the [supported Jest CLI options](https://jestjs.io/docs/cli#options) as command-line arguments (some options like `--reporters` may not work on some versions of Jest, but you can specify them in the [Jest config file](https://jestjs.io/docs/configuration)):
2525

2626
```bash
2727
npx @knapsack-pro/jest --debug

0 commit comments

Comments
 (0)