@wener/ui
Version:
17 lines (15 loc) • 439 B
JavaScript
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig');
module.exports = {
setupFiles: ['<rootDir>/jest.setup.js'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
},
globals: {
'ts-jest': {
tsConfig: 'tsconfig.jest.json'
// tsConfig: 'tsconfig.json',
}
},
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/' })
};