-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathjest.config.mjs
More file actions
33 lines (32 loc) · 996 Bytes
/
jest.config.mjs
File metadata and controls
33 lines (32 loc) · 996 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
30
31
32
33
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
export default {
clearMocks: true,
coverageProvider: "v8",
maxWorkers: "50%",
moduleDirectories: [
"src/js",
"modules",
"node_modules",
],
moduleNameMapper: {
'^web-worker:(?:..?/)+(.*)$': '<rootDir>/test/mocks/$1',
// '^file-saver$': '<rootDir>/test/mocks/file-saver.js',
},
setupFiles: ['./test/utils/jest-setup.js'],
testEnvironment: "./test/utils/env-with-fetch.js",
testEnvironmentOptions: {
customExportConditions: [''],
},
testMatch: [
"<rootDir>/test/*.test.jsx",
// "**/__tests__/**/*.[jt]s?(x)",
// "**/?(*.)+(spec|test).[tj]s?(x)"
],
transformIgnorePatterns: [
"/node_modules/(?!until-async|balanced-match|react-dnd|dnd-core|@react-dnd|dnd-multi-backend|rdndmb-html5-to-touch)",
"\\.pnp\\.[^\\/]+$"
],
};