Skip to content

Commit

Permalink
exclude playwright tests in jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
thal0x committed Sep 22, 2023
1 parent 5e9e798 commit f76117d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const createJestConfig = nextJest({
const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
testEnvironment: "jest-environment-jsdom",
testPathIgnorePatterns: [
"<rootDir>/.next/",
"<rootDir>/node_modules/",
"<rootDir>/tests/",
],
};

// 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 f76117d

Please sign in to comment.