diff --git a/jest.config.js b/jest.config.js index 1316aa32..76ece522 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,11 @@ const createJestConfig = nextJest({ const customJestConfig = { setupFilesAfterEnv: ["/jest.setup.js"], testEnvironment: "jest-environment-jsdom", + testPathIgnorePatterns: [ + "/.next/", + "/node_modules/", + "/tests/", + ], }; // createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async