-
Notifications
You must be signed in to change notification settings - Fork 132
/
jest.config.js
30 lines (30 loc) · 779 Bytes
/
jest.config.js
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
30
module.exports = {
verbose: true,
resetMocks: true,
collectCoverage: true,
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
testMatch: [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{ts,js,jsx,mjs}"
],
testEnvironment: "jsdom",
testURL: "http://localhost",
transform: {
"\\.(ts|tsx)$": "ts-jest",
"^.+\\.(js|jsx|mjs)$": "<rootDir>/config/jest/jsTransformer.js",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
transformIgnorePatterns: ["node_modules/(?!d3|d3-.*)/"],
moduleFileExtensions: [
"js",
"web.js",
"mjs",
"ts",
"json",
"web.jsx",
"jsx",
"tsx",
"node"
]
}