static-cms/core/jest.config.js

18 lines
527 B
JavaScript
Raw Normal View History

2022-12-04 22:15:59 -05:00
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',
},
2022-12-11 09:03:53 -05:00
transformIgnorePatterns: [],
2022-12-04 22:15:59 -05:00
setupFiles: ['./test/setupEnv.js'],
};