Skip to content

Commit

Permalink
Update packages/jest/src/jest-fast-check.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz authored Oct 19, 2022
1 parent ff71782 commit 041f675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest/src/jest-fast-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function internalTestPropExecute<Ts extends [any] | any[]>(
// This option is only available since v29.2.0 of Jest
// See official release note: https://github.com/facebook/jest/releases/tag/v29.2.0
const seedFromJest = typeof jest.getSeed === 'function' ? jest.getSeed() : undefined;
if (seedFromJest) {
if (seedFromJest !== undefined) {
customParams.seed = seedFromJest;
} else {
customParams.seed = Date.now() ^ (Math.random() * 0x100000000);
Expand Down

0 comments on commit 041f675

Please sign in to comment.