static-cms/packages/core/jest.config.integration.js
renovate[bot] 5839aaec2a
chore(deps): update jest monorepo to v29.4.0 (#423)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Lautzenheiser <lautzd@gmail.com>
2023-01-24 11:44:08 -05:00

19 lines
560 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: [],
setupFiles: ['./test/setupEnv.js'],
testRegex: '\\.ispec\\.tsx?$',
};