1 | const { pathsToModuleNameMapper } = require('ts-jest/utils');
|
2 | const { compilerOptions } = require('./tsconfig');
|
3 |
|
4 | module.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 | };
|