Skip to content

Commit

Permalink
Feat: Jest Path 설정 추가
Browse files Browse the repository at this point in the history
- package.json
  - Jest를 위한 Path alias 추가
    - moduleNameMapper
  • Loading branch information
Capoomaru committed May 1, 2024
1 parent f250888 commit be71d88
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 be71d88

Please sign in to comment.