Skip to content

Commit 4632bdd

Browse files
committed
Update jest.config.ts
1 parent 2c6d152 commit 4632bdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

course-matrix/backend/jest.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
12
import type { Config } from "jest";
23

34
const config: Config = {
45
preset: "ts-jest",
5-
moduleNameMapper: { "\\.(css|scss)$": "identity-obj-proxy" },
6+
moduleNameMapper: {
7+
"\\.(css|scss)$": "identity-obj-proxy",
8+
"^.+\\.svg": "<rootDir>/tests/mocks/svgMock.tsx",
9+
},
610
// to obtain access to the matchers.
11+
setupFilesAfterEnv: ["<rootDir>/tests/setupTests.ts"],
712
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
813
modulePaths: ["<rootDir>"],
914
testEnvironment: "jsdom",

0 commit comments

Comments
 (0)