module.exports = { roots: ['/src'], transform: { '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], testEnvironment: 'node', preset: 'ts-jest', moduleNameMapper: { '^@src/(.*)$': '/src/$1', '^@controllers/(.*)$': '/src/controllers/$1', '^@models/(.*)$': '/src/models/$1', '^@services/(.*)$': '/src/services/$1', '^@utils/(.*)$': '/src/utils/$1', '^@libs/(.*)$': '/src/libs/$1', '^@configs/(.*)$': '/configs/$1', '^@middlewares/(.*)$': '/src/middlewares/$1', }, };