Skip to content

Commit

Permalink
Make property-test failures reproducible
Browse files Browse the repository at this point in the history
Jest 29.2 added an option to set a seed, which fast-check uses, and to show it. In the event of a failure, we can rerun the tests with the same seed, making debugging non-deterministic failures far simpler.

I'm not sure why Dependabot isn't updating Jest/ts-jest to v29.

Refs #388, a6b0f11, jestjs/jest#13400, dubzzz/fast-check#3332
  • Loading branch information
thewilkybarkid committed Oct 26, 2022
1 parent 400d485 commit 429bb48
Show file tree
Hide file tree
Showing 3 changed files with 751 additions and 1,002 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
showSeed: true,
injectGlobals: false,
testEnvironment: 'node',
roots: ['./src/', './test/'],
Expand Down
Loading

0 comments on commit 429bb48

Please sign in to comment.