fischerX/services/api/jest.config.js

22 lines
542 B
JavaScript

module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': ['ts-jest', {
tsconfig: 'tsconfig.json',
}],
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
testEnvironment: 'node',
transformIgnorePatterns: [
'node_modules/(?!(uuid)/)',
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^express$': '<rootDir>/../test/mocks/express.ts',
'^uuid$': '<rootDir>/__mocks__/uuid.ts',
},
};