Skip to content

Commit

Permalink
move extra info out of the tip section
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer authored Aug 20, 2024
1 parent 3b3bba0 commit 91dc4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,12 @@ Sets a seed value that can be retrieved in a test file via [`jest.getSeed()`](Je
jest --seed=1324
```

Jest uses the seed internally for shuffling the order in which test suites are run. If the [`--randomize`](#--randomize) option is used, the seed is also used for shuffling the order of tests within each `describe` block. When dealing with flaky tests, rerunning with the same seed might help reproduce the failure.

:::tip

If this option is not specified Jest will randomly generate the value. You can use the [`--showSeed`](#--showseed) flag to print the seed in the test report summary.

Jest uses the seed internally for shuffling the order in which test suites are run. If the [`--randomize`](#--randomize) option is used, the seed is also used for shuffling the order of tests within each `describe` block. When dealing with flaky tests, rerunning with the same seed might help reproduce the failure.

:::

### `--selectProjects <project1> ... <projectN>`
Expand Down

0 comments on commit 91dc4c6

Please sign in to comment.