-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (35 loc) · 936 Bytes
/
jest.config.js
File metadata and controls
35 lines (35 loc) · 936 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
34
35
module.exports = {
"roots": [
"<rootDir>/test"
],
preset: 'ts-jest',
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node",
],
testEnvironment: 'node',
moduleNameMapper: {
'^@root/(.*)$': '<rootDir>/src/$1',
'^@api/(.*)$': '<rootDir>/src/api/$1',
'^@db/(.*)$': '<rootDir>/src/db/$1',
'^@auth/(.*)$': '<rootDir>/src/auth/$1',
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
'^@errors/(.*)$': '<rootDir>/src/errors/$1',
'^@middlewares/(.*)$': '<rootDir>/src/middlewares/$1',
'^@root': '<rootDir>/src/root',
'^@db': '<rootDir>/src/db',
'^@api': '<rootDir>/src/api',
'^@auth': '<rootDir>/src/auth',
'^@utils': '<rootDir>/src/utils',
'^@errors': '<rootDir>/src/errors',
'^@middlewares': '<rootDir>/src/middlewares',
},
}