-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
29 lines (26 loc) · 846 Bytes
/
jest.config.ts
File metadata and controls
29 lines (26 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import type { Config } from "@jest/types";
console.log("Root Directory:", process.cwd());
const config: Config.InitialOptions = {
preset: "ts-jest",
testEnvironment: "jest-environment-jsdom",
moduleNameMapper: {
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
"^@/pathFindingAlgorithms/(.*)$":
"<rootDir>/components/pathFindingAlgorithms/$1",
"^@/(.*)$": "<rootDir>/components/$1",
"^utils/(.*)$": "<rootDir>/utils/$1",
},
globals: {
"ts-jest": {
tsconfig: `${process.cwd()}/tests/tsconfig.jest.json`,
},
},
collectCoverage: true,
coverageReporters: ["json", "lcov", "text", "clover"],
coverageDirectory: "./coverage",
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
testPathIgnorePatterns: ["/node_modules/", "/cypress/"],
};
export default config;