Skip to content

Commit

Permalink
tests: jest bigint serialization bug workaround
Browse files Browse the repository at this point in the history
running into this issue: jestjs/jest#11617
  • Loading branch information
kev1n-peters committed Aug 27, 2024
1 parent 9abeccd commit e14f7d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/base/__tests__/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
ConsistencyLevels,
finalityThreshold,
consistencyLevelToBlock,
} from '../src/constants/finality.js';
} from "../src/constants/finality.js";

describe("Finality tests", function () {
test("Receive expected number of rounds", () => {
Expand Down
4 changes: 4 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const jestConfig: JestConfigWithTsJest = {
transform: {
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.esm.json" }],
},
// TODO: Remove this when Jest 30 is released
// https://github.com/jestjs/jest/issues/11617#issuecomment-2027387160
maxWorkers: "50%",
workerThreads: true,
};

export default jestConfig;

0 comments on commit e14f7d8

Please sign in to comment.