-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
jest.config.js
27 lines (27 loc) · 1 KB
/
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
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
setupFilesAfterEnv: ["<rootDir>/src/jest.setup.ts"],
testEnvironment: "jsdom",
globals: {
"ts-jest": {
tsconfig: "./tsconfig.jest.json",
},
},
moduleNameMapper: {
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/mocks/fileMock.js",
"\\.(css|less)$": "<rootDir>/mocks/fileMock.js",
"^.+\\.(css|less|scss)$": "babel-jest",
"^@components(.*)$": "<rootDir>/src/components$1",
"^@pages(.*)$": "<rootDir>/src/pages$1",
"^@src(.*)$": "<rootDir>/src/$1",
"^@shared(.*)$": "<rootDir>/src/shared$1",
"^@store(.*)$": "<rootDir>/src/store$1",
"^@assets(.*)$": "<rootDir>/src/assets$1",
"^@consts(.*)$": "<rootDir>/src/constants$1",
"^@models(.*)$": "<rootDir>/src/models$1",
"^@api(.*)$": "<rootDir>/src/api$1",
"^@utils(.*)$": "<rootDir>/src/utils$1",
"^@translations(.*)$": "<rootDir>/src/translations$1",
},
};