import type { Config } from "jest"; import nextJest from "next/jest.js"; const config: Config = { collectCoverage: true, coverageDirectory: "coverage", coverageProvider: "v8", modulePaths: [""], setupFilesAfterEnv: ["/jest.setup.ts"], testEnvironment: "jsdom", testPathIgnorePatterns: ["/node_modules/"], modulePathIgnorePatterns: ["/.blueprints"], }; const createJestConfig = nextJest({ // Provide the path to your Next.js app to load next.config.js and .env files in your test environment dir: "./", }); export default createJestConfig(config);