Skip to content

Commit

Permalink
[KAN-122] chore : playwright 테스트 파일을 jest 테스트에서 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchaeney committed Oct 14, 2024
1 parent 860f58f commit 87e4181
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ const config = {
moduleDirectories: ['node_modules', '<rootDir>'],
// Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
rootDir: './',
moduleNameMapper: {
'^@/public/(.*)$': '<rootDir>/public/$1', // public 폴더 매핑
'^@/(.*)$': '<rootDir>/src/$1', // src 폴더 매핑
},
modulePaths: ['<rootDir>'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
moduleDirectories: ['node_modules', '<rootDir>'],
testMatch: [
'<rootDir>/src/utils/**/*.test.tsx',
'<rootDir>/src/utils/**/*.test.ts',
'<rootDir>/src/app/components/**/*.test.tsx',
'<rootDir>/src/app/components/**/*.test.ts',
],
testPathIgnorePatterns: ['<rootDir>/src/app/**/page.test.tsx'],
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
Expand Down

0 comments on commit 87e4181

Please sign in to comment.