Skip to content

Commit

Permalink
feat: css import error로 인해 moduleNameMapper jest-transform-css 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Mar 4, 2023
1 parent 0d60055 commit d75bc30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
//TODO: alias 패턴 수정 필요
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^.+\\.css$': ['jest-transform-css', { modules: true }],
},
setupFilesAfterEnv: ['<rootDir>/src/jest.setup.ts'],
transform: {
Expand Down

0 comments on commit d75bc30

Please sign in to comment.