18 lines
571 B
JavaScript
18 lines
571 B
JavaScript
|
const { pathsToModuleNameMapper } = require('ts-jest');
|
||
|
|
||
|
const { compilerOptions } = require('./tsconfig.base');
|
||
|
|
||
|
module.exports = {
|
||
|
preset: 'ts-jest',
|
||
|
transform: {
|
||
|
'\\.[jt]sx?$': ['ts-jest', { tsConfig: 'tsconfig.dev.json' }],
|
||
|
'^.+\\.svg$': './test/fileTransformer',
|
||
|
},
|
||
|
moduleNameMapper: {
|
||
|
...pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/' }),
|
||
|
'\\.(css|less)$': '<rootDir>/src/__mocks__/styleMock.ts',
|
||
|
},
|
||
|
transformIgnorePatterns: ['node_modules/(?!(url-join|array-move|ol)/)'],
|
||
|
setupFiles: ['./test/setupEnv.js'],
|
||
|
};
|