import type { Config } from "@jest/types"; const config: Config.InitialOptions = { verbose: true, roots: [""], setupFiles: ["/test/jest-setup.js"], testMatch: ["**/test/lib/**/*.(spec|test).(ts|tsx|js)"], testPathIgnorePatterns: ["/.next", "/playwright/"], transform: { "^.+\\.(js|jsx|ts|tsx)$": ["babel-jest", { presets: ["next/babel"] }], }, transformIgnorePatterns: ["/node_modules/", "^.+\\.module\\.(css|sass|scss)$"], testEnvironment: "jsdom", resolver: `/test/jest-resolver.js`, moduleNameMapper: { "^@components(.*)$": "/components$1", "^@lib(.*)$": "/lib$1", "^@server(.*)$": "/server$1", "^@ee(.*)$": "/ee$1", }, }; export default config;