Skip to content

Commit

Permalink
Merge pull request #29 from GDSC-PKNU-21-22/test/#28
Browse files Browse the repository at this point in the history
Test: jest도 @상대경로 가능
  • Loading branch information
pp449 authored Apr 2, 2023
2 parents 2699dc7 + bdb0f6a commit 3c97939
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ export default {
testEnvironment: 'jsdom',
testMatch: ['**/src/**/*.{spec,test}.{js,jsx,ts,tsx}'],
moduleNameMapper: {
'^@/(.*)': '<rootDir>/src/$1',
'^@type/(.*)$': '<rootDir>/src/@types/$1',
'^@components/(.*)$': '<rootDir>/src/components/$1',
'^@constants/(.*)$': '<rootDir>/src/constants/$1',
'^@styles/(.*)$': '<rootDir>/src/styles/$1',
'^@utils/(.*)$': '<rootDir>/src/utils/$1',
'^@hooks/(.*)$': '<rootDir>/src/hooks/$1',
'^@pages/(.*)$': '<rootDir>/src/pages/$1',
'^@assets/(.*)$': '<rootDir>/public/assets/$1',
},
};

0 comments on commit 3c97939

Please sign in to comment.