/** @type {import('jest').Config} */ const config = { testEnvironment: 'node', moduleNameMapper: { '^@/(.*)$': '/src/$1', }, transform: { '^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: { jsx: 'react-jsx', esModuleInterop: true, }, }], }, testMatch: [ '**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.tsx', ], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], collectCoverageFrom: [ 'src/**/*.{ts,tsx}', '!src/**/*.d.ts', '!src/**/*.test.{ts,tsx}', ], } module.exports = config