module.exports = { transform: { '^.+\\.(js|jsx|ts|tsx)$': [ 'babel-jest', { presets: [ [ '@babel/preset-env', { targets: { node: 'current', }, }, ], '@babel/preset-react', '@babel/preset-typescript', ], plugins: ['dynamic-import-node'], }, ], }, testEnvironment: 'node', testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], };