Skip to content

Commit

Permalink
Enable Jest worker threads for assertion failures involving BigInt
Browse files Browse the repository at this point in the history
In case of a test failure, we'll see the diff instead of Jest crashing.
See jestjs/jest#11617 (comment)

There don't appear to be any adverse effects of enabling the option. Test failures when strictly comparing message classes are still reported correctly.
  • Loading branch information
timostamm committed Mar 27, 2024
1 parent 4826555 commit ea52fa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/protobuf-test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const config = {
// The root directory that Jest should scan for tests and modules within
rootDir: "dist/esm",

// Enable worker threads for assertion failures involving BigInt
// See https://github.com/jestjs/jest/issues/11617#issuecomment-1458155552
workerThreads: true,

transform: {},
};

Expand Down

0 comments on commit ea52fa2

Please sign in to comment.