Skip to content

Commit

Permalink
Account for Jest 29.4.3 mock restore changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CreativeTechGuy committed Mar 22, 2023
1 parent 0a034ea commit e5f43fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ module.exports = {
"jest/prefer-to-be": "warn",
"jest/prefer-to-contain": "warn",
"jest/prefer-to-have-length": "warn",
"jest/require-top-level-describe": "error",
"jest/valid-describe-callback": "error",
"jest/valid-expect": "error",
"jest/valid-expect-in-promise": "error",
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const inspector = require("inspector");
const isDebuggerAttached = inspector.url() !== undefined;

module.exports = {
clearMocks: true,
restoreMocks: true,
collectCoverage: true,
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}"],
Expand Down
1 change: 0 additions & 1 deletion test/mocks/mockRandom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { SeededRandom } from "~/utils/seededRandom";

const random = new SeededRandom(0);

// eslint-disable-next-line jest/require-top-level-describe
beforeEach(() => {
random.setSeed(123456789);
jest.spyOn(Math, "random").mockImplementation(() => {
Expand Down

0 comments on commit e5f43fc

Please sign in to comment.