We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390001c commit 76673d7Copy full SHA for 76673d7
server/jest.config.js
@@ -2,11 +2,12 @@ module.exports = {
2
preset: 'ts-jest', // to use typescript
3
verbose: true,
4
moduleNameMapper: {
5
- "@apis/(.*)": "<rootDir>/apis/$1",
6
- "@config": "<rootDir>/config",
7
- "@constants/(.*)": "<rootDir>/constants/$1",
8
- "@db": "<rootDir>/db",
9
- "@middlewares/(.*)": "<rootDir>/middlewares/$1",
10
- "@utils/(.*)": "<rootDir>/utils/$1"
11
- }
12
-}
+ '@apis/(.*)': '<rootDir>/apis/$1',
+ '@config': '<rootDir>/config',
+ '@constants/(.*)': '<rootDir>/constants/$1',
+ '@db': '<rootDir>/db',
+ '@middlewares/(.*)': '<rootDir>/middlewares/$1',
+ '@utils/(.*)': '<rootDir>/utils/$1',
+ '@errors/(.*)': '<rootDir>/errors/$1',
+ },
13
+};
0 commit comments