generated from yandex-praktikum/middle.messenger.praktikum.yandex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
22 lines (22 loc) · 894 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
module.exports = {
testEnvironment: "jsdom",
setupFiles: ["<rootDir>/src/__tests__/setup-env.ts"],
setupFilesAfterEnv: ["<rootDir>/src/__tests__/setup.ts"],
transformIgnorePatterns: ["<rootDir>/node_modules/(?!(nanoid)/)"],
transform: {
"\\.[jt]sx?$": "babel-jest",
"\\.hbs$": "<rootDir>/node_modules/jest-text-transformer",
},
testPathIgnorePatterns: ["<rootDir>/node_modules/", "<rootDir>/src/__tests__", "fixtures"],
moduleNameMapper: {
"\\.(scss)$": "identity-obj-proxy",
"^app(.*)$": "<rootDir>/src/app$1",
"^processes(.*)$": "<rootDir>/src/processes$1",
"^pages(.*)$": "<rootDir>/src/pages$1",
"^widgets(.*)$": "<rootDir>/src/widgets$1",
"^features(.*)$": "<rootDir>/src/features$1",
"^entities(.*)$": "<rootDir>/src/entities$1",
"^shared(.*)$": "<rootDir>/src/shared$1",
"^__tests__(.*)$": "<rootDir>/src/__tests__$1",
},
};