Skip to content

Commit a5a7998

Browse files
Issue #52 Jest is not finding extension methods provided by jest-extended
added jest extended to jest config array and removed from setup tests
2 parents a2f7e03 + e810adc commit a5a7998

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ module.exports = {
99
modulePathIgnorePatterns: ["<rootDir>/dist"],
1010
preset: "ts-jest",
1111
roots: ["<rootDir>/src"],
12-
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
12+
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts", "jest-extended"],
1313
testEnvironment: "jsdom",
1414
};

src/setupTests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import "@testing-library/jest-dom/extend-expect";
22
import { GlobalWithFetchMock } from "jest-fetch-mock";
33

4-
require("jest-extended");
54
// require("tests/factories");
65

76
const customGlobal: GlobalWithFetchMock = global as GlobalWithFetchMock;

0 commit comments

Comments
 (0)