From f76117d9f7de8e4705e282335c301e00801b9ffa Mon Sep 17 00:00:00 2001 From: thal0x Date: Fri, 22 Sep 2023 08:31:22 -0500 Subject: [PATCH] exclude playwright tests in jest config --- jest.config.js | 5 +++++ 1 file changed, 5 insertions(+) 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