generated from jsam07/electron-vue-ts-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
29 lines (29 loc) · 951 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
23
24
25
26
27
28
29
module.exports = {
rootDir: '.',
roots: ['.'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
// '^@config/(.*)': '<rootDir>/src/config/$1',
// '^@controllers/(.*)': '<rootDir>/src/api/controllers/$1',
// '^@errors/(.*)': '<rootDir>/src/api/errors/$1',
// '^@interfaces/(.*)': '<rootDir>/src/api/interfaces/$1',
// '^@models/(.*)': '<rootDir>/src/api/models/$1',
// '^@middleware/(.*)': '<rootDir>/src/api/middleware/$1',
// '^@routes/(.*)': '<rootDir>/src/api/routes/$1',
// '^@services/(.*)': '<rootDir>/src/api/services/$1',
// '^@utils/(.*)': '<rootDir>/src/api/utils/$1',
// '^@helpers/(.*)': '<rootDir>/src/api/helpers/$1',
// '^@validators/(.*)': '<rootDir>/src/api/validators/$1',
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
moduleFileExtensions: ['ts', 'js'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
testMatch: ['**/tests/**/*.test.(ts|js)'],
testEnvironment: 'node',
};