[Docs]: describe usage of the seed
option within jest, mention test ordering
#15060
Labels
seed
option within jest, mention test ordering
#15060
Page(s)
https://jestjs.io/docs/cli#--seednum
Description
https://jestjs.io/docs/cli#--seednum describes the CLI
seed
option, but only mentions it's usage withingetSeed
(with a link to https://jestjs.io/docs/jest-object#jestgetseed ).As far as I can tell, the
seed
option is also used to initialze the shuffle that applies to children of a describe block here:jest/packages/jest-circus/src/run.ts
Lines 88 to 90 in 654dbd6
If that is correct, it would help a lot to mention that test flakyness might be related to this shuffling, and reusing the same seed of a failed run can help reproduce that failure.
The text was updated successfully, but these errors were encountered: