From 7b5e8204ba661057606f96bfff344c41b1a0408e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Thu, 26 Sep 2024 09:44:58 +0200 Subject: [PATCH] update description for seed option (#15266) --- docs/CLI.md | 2 ++ website/versioned_docs/version-29.4/CLI.md | 2 ++ website/versioned_docs/version-29.5/CLI.md | 2 ++ website/versioned_docs/version-29.6/CLI.md | 2 ++ website/versioned_docs/version-29.7/CLI.md | 2 ++ 5 files changed, 10 insertions(+) diff --git a/docs/CLI.md b/docs/CLI.md index cadabf9d8eea..59fcd897806e 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -407,6 +407,8 @@ jest --seed=1324 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 ... ` diff --git a/website/versioned_docs/version-29.4/CLI.md b/website/versioned_docs/version-29.4/CLI.md index 2ddfce9e5325..e095ce1e1f2e 100644 --- a/website/versioned_docs/version-29.4/CLI.md +++ b/website/versioned_docs/version-29.4/CLI.md @@ -358,6 +358,8 @@ jest --seed=1324 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 ... ` diff --git a/website/versioned_docs/version-29.5/CLI.md b/website/versioned_docs/version-29.5/CLI.md index 0417fe7fa9b2..612ab82def11 100644 --- a/website/versioned_docs/version-29.5/CLI.md +++ b/website/versioned_docs/version-29.5/CLI.md @@ -378,6 +378,8 @@ jest --seed=1324 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 ... ` diff --git a/website/versioned_docs/version-29.6/CLI.md b/website/versioned_docs/version-29.6/CLI.md index 5b5c6938a11c..d181f2b62315 100644 --- a/website/versioned_docs/version-29.6/CLI.md +++ b/website/versioned_docs/version-29.6/CLI.md @@ -410,6 +410,8 @@ jest --seed=1324 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 ... ` diff --git a/website/versioned_docs/version-29.7/CLI.md b/website/versioned_docs/version-29.7/CLI.md index 5b5c6938a11c..d181f2b62315 100644 --- a/website/versioned_docs/version-29.7/CLI.md +++ b/website/versioned_docs/version-29.7/CLI.md @@ -410,6 +410,8 @@ jest --seed=1324 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 ... `