-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat: add a seed value to test runs #13400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 17 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
886a1e2
planned documentation
Joshua-Hwang d551da5
expose seed to runtime
Joshua-Hwang 4e44bef
WIP documentation
Joshua-Hwang 0877be4
integration tests for passing the seed to runtime
Joshua-Hwang d1f5311
seed is generated when not supplied
Joshua-Hwang 49c060f
fixed other tests
Joshua-Hwang bc8b4eb
improved documentation
Joshua-Hwang c5ca4d7
Merge branch 'facebook:main' into feat-get-seed
Joshua-Hwang fecf106
added copyright
Joshua-Hwang c39e63f
added replace seed function
Joshua-Hwang 923f556
added Seed to reporter
Joshua-Hwang 07f7b55
fixed some e2e tests for new Seed report
Joshua-Hwang 3987577
updated line number of e2e test
Joshua-Hwang dda334e
updated snapshots
Joshua-Hwang 3c61bc2
Merge branch 'main' of https://github.com/facebook/jest into feat-get…
jhwang98 08e53ac
added changelog
jhwang98 e848382
fixed e2e tests
jhwang98 9424589
lint fix
Joshua-Hwang 83f5e9a
updated further snapshots
Joshua-Hwang bfcc0b4
removed seed from initial options
Joshua-Hwang 3e78642
added typing tests
Joshua-Hwang ba7f269
documentation and messages made more clear
Joshua-Hwang 40047fe
added --showSeed arg
Joshua-Hwang 6730725
moved seed from environment to ctor
Joshua-Hwang 589d434
snapshots updated
Joshua-Hwang 4eafd79
fixed up e2e tests
Joshua-Hwang ebdf7cb
added new e2e test for --showSeed
Joshua-Hwang 116bdca
linting fix
Joshua-Hwang b7d5faa
Merge branch 'feat-get-seed' of github.com:jhwang98/jest into feat-ge…
Joshua-Hwang c7d196a
added showseed docs
Joshua-Hwang d2af3a6
showSeed is the only way to print the seed
Joshua-Hwang 2ea7dc6
e2e tests related are updated
Joshua-Hwang b9b8abf
snapshots updated
Joshua-Hwang 679521b
added showSeed to config
Joshua-Hwang adda4f7
added e2e test for showSeed config
Joshua-Hwang 01ac6f3
documented showSeed config
Joshua-Hwang 71c04c4
updated docs
Joshua-Hwang 1fee0a7
globalConfig passed instead and error thrown when seed is not present
Joshua-Hwang 7b97aab
lint fix
Joshua-Hwang 076eb02
replace Date.now
Joshua-Hwang d0eed4a
added showSeed test
Joshua-Hwang 523b995
use jest.useFakeTimer instead
Joshua-Hwang 1328b7b
removed optional chaining
Joshua-Hwang 1aae653
lint fix and error now has message
Joshua-Hwang d568629
clarified docs
Joshua-Hwang e246b8a
Changelog updated
Joshua-Hwang 3efe6fc
tweak changelog
SimenB 0fb3e79
tweak link
SimenB d023a21
run same integration test
SimenB 535730b
do not use snapshots in tests
SimenB 3cb272b
tweak doc
SimenB b8a70eb
test bounds of seed
SimenB b2021e5
no hooks
SimenB 91212a2
remove unused optional
SimenB ed5f9c1
oops
SimenB 157ea7e
Merge branch 'main' into feat-get-seed
SimenB cf0230c
prettier
SimenB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.