14 lines
364 B
JavaScript
14 lines
364 B
JavaScript
const nextJest = require("next/jest")
|
|
|
|
const createJestConfig = nextJest({
|
|
dir: "./",
|
|
})
|
|
|
|
const customJestConfig = {
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
|
|
testEnvironment: "jest-environment-jsdom",
|
|
modulePathIgnorePatterns: ["<rootDir>/dist/"],
|
|
testPathIgnorePatterns: ["<rootDir>/e2e"],
|
|
}
|
|
|
|
module.exports = createJestConfig(customJestConfig)
|