/** @type {import('jest').Config} */ const config = { preset: 'ts-jest', testEnvironment: 'node', roots: ['/__tests__'], testMatch: ['**/*.test.ts'], moduleNameMapper: { '^@/(.*)$': '/$1', }, transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json', }], }, collectCoverageFrom: [ 'lib/**/*.ts', '!lib/**/*.d.ts', ], coverageThreshold: { global: { branches: 80, functions: 80, lines: 80, statements: 80, }, }, setupFilesAfterEnv: [], verbose: true, }; module.exports = config;