From 87e41812c4366fa67daf2ea2c0dab62b7cbe5c45 Mon Sep 17 00:00:00 2001 From: chaeney Date: Mon, 14 Oct 2024 13:39:55 +0900 Subject: [PATCH] =?UTF-8?q?[KAN-122]=20chore=20:=20playwright=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=ED=8C=8C=EC=9D=BC=EC=9D=84=20jest=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=97=90=EC=84=9C=20=EC=A0=9C?= =?UTF-8?q?=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest.config.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/jest.config.js b/jest.config.js index 9f7ebf4c..8ec2f841 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,14 +20,13 @@ const config = { moduleDirectories: ['node_modules', ''], // Add more setup options before each test is run // setupFilesAfterEnv: ['/jest.setup.ts'], - rootDir: './', - moduleNameMapper: { - '^@/public/(.*)$': '/public/$1', // public 폴더 매핑 - '^@/(.*)$': '/src/$1', // src 폴더 매핑 - }, - modulePaths: [''], - moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'], - moduleDirectories: ['node_modules', ''], + testMatch: [ + '/src/utils/**/*.test.tsx', + '/src/utils/**/*.test.ts', + '/src/app/components/**/*.test.tsx', + '/src/app/components/**/*.test.ts', + ], + testPathIgnorePatterns: ['/src/app/**/page.test.tsx'], }; // createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async