UNPKG

439 BJavaScriptView Raw
1const { pathsToModuleNameMapper } = require('ts-jest/utils');
2const { compilerOptions } = require('./tsconfig');
3
4module.exports = {
5 setupFiles: ['<rootDir>/jest.setup.js'],
6 transform: {
7 '^.+\\.(ts|tsx)$': 'ts-jest'
8 },
9 globals: {
10 'ts-jest': {
11 tsConfig: 'tsconfig.jest.json'
12 // tsConfig: 'tsconfig.json',
13 }
14 },
15 moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/' })
16};