diff --git a/backend/package.json b/backend/package.json index 3c347f12..b0fa1a93 100644 --- a/backend/package.json +++ b/backend/package.json @@ -98,7 +98,25 @@ "**/*.(t|j)s" ], "coverageDirectory": "../coverage", - "testEnvironment": "node" + "testEnvironment": "node", + "moduleNameMapper": { + "^@src/(.*)$": "/$1", + "^@config/(.*)$": "/config/$1", + "^@utils/(.*)$": "/utils/$1", + "^@enum/(.*)$": "/enum/$1", + "^@constants/(.*)$": "/constants/$1", + "^@modules/(.*)$": "/modules/$1", + "^@auth/(.*)$": "/modules/authModules/auth/$1", + "^@user/(.*)$": "/modules/userModules/user/$1", + "^@group/(.*)$": "/modules/userModules/group/$1", + "^@chat/(.*)$": "/modules/userModules/chat/$1", + "^@brand/(.*)$": "/modules/themeModules/brand/$1", + "^@branch/(.*)$": "/modules/themeModules/branch/$1", + "^@crawlerUtils/(.*)$": "/modules/themeModules/crawlerUtils/$1", + "^@theme/(.*)$": "/modules/themeModules/theme/$1", + "^@diary/(.*)$": "/modules/diaryModules/diary/$1", + "^@comment/(.*)$": "/modules/diaryModules/comment/$1" + } }, "lint-staged": { "*.{js,ts}": [