-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 795 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 795 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
/** @type {import('jest').Config} */
module.exports = {
clearMocks: true,
projects: [
{
testEnvironment: "node",
testMatch: ["**/tests/api/**/*.test.ts"],
setupFilesAfterEnv: ["<rootDir>/tests/api/setup.ts"],
},
{
testEnvironment: "jsdom",
testMatch: ["**/tests/frontend/**/*.test.tsx"],
moduleNameMapper: {
"\\.css$": "identity-obj-proxy",
},
transformIgnorePatterns: ["/node_modules/(?!ol)/"],
setupFiles: ["<rootDir>/tests/frontend/setup.ts"],
globalSetup: "<rootDir>/tests/frontend/global-setup.ts",
},
{
setupFilesAfterEnv: ["<rootDir>/tests/e2e/setup.ts"],
testEnvironment: "<rootDir>/tests/e2e/puppeteer-environment.ts",
testMatch: ["**/tests/e2e/**/*.test.ts"],
},
],
};