next-enterprise/jest.config.mjs

16 lines
393 B
JavaScript
Raw Normal View History

2023-04-19 20:41:22 +02:00
import nextJest from "next/jest.js"
const createJestConfig = nextJest({
dir: "./",
})
/** @type {import('jest').Config} */
2023-04-19 20:41:22 +02:00
const config = {
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
testEnvironment: "jest-environment-jsdom",
modulePathIgnorePatterns: ["<rootDir>/dist/"],
2023-05-17 17:45:25 +02:00
testPathIgnorePatterns: ["<rootDir>/e2e"],
}
2023-04-19 20:41:22 +02:00
export default createJestConfig(config)