diff --git a/jest.config.js b/jest.config.js index 8ec2f841..620c6f2f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -26,7 +26,7 @@ const config = { '/src/app/components/**/*.test.tsx', '/src/app/components/**/*.test.ts', ], - testPathIgnorePatterns: ['/src/app/**/page.test.tsx'], + testPathIgnorePatterns: ['^src/app/.*/page.(test|spec).(ts|tsx)$'], }; // createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async