module.exports = { testEnvironment: 'node', testMatch: ['**/tests/**/*.test.js', '**/tests/**/*.test.ts'], // TypeScript (src/**/*.ts and tests) runs through ts-jest; plain JS is left as it is. transform: { '^.+\\.ts$': ['ts-jest', { tsconfig: 'tsconfig.json' }] }, moduleFileExtensions: ['ts', 'js', 'json'], modulePathIgnorePatterns: ['/dist/'], };