2023-04-19 20:41:22 +02:00
|
|
|
import nextJest from "next/jest.js"
|
|
|
|
|
|
|
|
|
|
const createJestConfig = nextJest({
|
|
|
|
|
dir: "./",
|
|
|
|
|
})
|
|
|
|
|
|
2023-04-16 20:47:49 +02:00
|
|
|
/** @type {import('jest').Config} */
|
2023-04-19 20:41:22 +02:00
|
|
|
const config = {
|
2023-04-16 20:47:49 +02:00
|
|
|
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-16 20:47:49 +02:00
|
|
|
}
|
2023-04-19 20:41:22 +02:00
|
|
|
|
|
|
|
|
export default createJestConfig(config)
|