/** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: ['/test'], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1', }, transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: { strict: true, target: 'ES2017', module: 'CommonJS', moduleResolution: 'node', esModuleInterop: true, lib: ['ES2019', 'DOM'], types: ['jest'], }, }], }, };