Skip to content

Commit

Permalink
Merge pull request #478 from boostcampwm2023/Config/BE/#477
Browse files Browse the repository at this point in the history
Config/BE/#477: 테스트(`Jest`)를 위한 Path 설정 추가
  • Loading branch information
Capoomaru authored May 2, 2024
2 parents f250888 + be71d88 commit defd0d8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,25 @@
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
"testEnvironment": "node",
"moduleNameMapper": {
"^@src/(.*)$": "<rootDir>/$1",
"^@config/(.*)$": "<rootDir>/config/$1",
"^@utils/(.*)$": "<rootDir>/utils/$1",
"^@enum/(.*)$": "<rootDir>/enum/$1",
"^@constants/(.*)$": "<rootDir>/constants/$1",
"^@modules/(.*)$": "<rootDir>/modules/$1",
"^@auth/(.*)$": "<rootDir>/modules/authModules/auth/$1",
"^@user/(.*)$": "<rootDir>/modules/userModules/user/$1",
"^@group/(.*)$": "<rootDir>/modules/userModules/group/$1",
"^@chat/(.*)$": "<rootDir>/modules/userModules/chat/$1",
"^@brand/(.*)$": "<rootDir>/modules/themeModules/brand/$1",
"^@branch/(.*)$": "<rootDir>/modules/themeModules/branch/$1",
"^@crawlerUtils/(.*)$": "<rootDir>/modules/themeModules/crawlerUtils/$1",
"^@theme/(.*)$": "<rootDir>/modules/themeModules/theme/$1",
"^@diary/(.*)$": "<rootDir>/modules/diaryModules/diary/$1",
"^@comment/(.*)$": "<rootDir>/modules/diaryModules/comment/$1"
}
},
"lint-staged": {
"*.{js,ts}": [
Expand Down

0 comments on commit defd0d8

Please sign in to comment.