Skip to content
/ jest Public
forked from jestjs/jest

Commit 7b5e820

Browse files
authored
update description for seed option (jestjs#15266)
1 parent 7afa881 commit 7b5e820

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

docs/CLI.md

+2
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ jest --seed=1324
407407

408408
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.
409409

410+
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.
411+
410412
:::
411413

412414
### `--selectProjects <project1> ... <projectN>`

website/versioned_docs/version-29.4/CLI.md

+2
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ jest --seed=1324
358358

359359
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.
360360

361+
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.
362+
361363
:::
362364

363365
### `--selectProjects <project1> ... <projectN>`

website/versioned_docs/version-29.5/CLI.md

+2
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ jest --seed=1324
378378

379379
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.
380380

381+
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.
382+
381383
:::
382384

383385
### `--selectProjects <project1> ... <projectN>`

website/versioned_docs/version-29.6/CLI.md

+2
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ jest --seed=1324
410410

411411
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.
412412

413+
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.
414+
413415
:::
414416

415417
### `--selectProjects <project1> ... <projectN>`

website/versioned_docs/version-29.7/CLI.md

+2
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ jest --seed=1324
410410

411411
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.
412412

413+
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.
414+
413415
:::
414416

415417
### `--selectProjects <project1> ... <projectN>`

0 commit comments

Comments
 (0)