/** @type {import('jest').Config} */ const config = { testEnvironment: 'jsdom', setupFilesAfterEnv: ['/jest.setup.js'], moduleNameMapper: { '^@/(.*)$': '/$1', '\\.(css|less|scss|sass)$': 'identity-obj-proxy', }, testPathIgnorePatterns: ['/node_modules/', '/.next/'], transform: { '^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: 'tsconfig.json', }], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], collectCoverageFrom: [ 'lib/**/*.{ts,tsx}', 'components/**/*.{ts,tsx}', 'app/**/*.{ts,tsx}', '!**/*.d.ts', '!**/node_modules/**', ], coverageThreshold: { global: { branches: 50, functions: 50, lines: 50, statements: 50, }, }, }; module.exports = config;