procyon/jest.config.js

25 lines
1.1 KiB
JavaScript
Raw Normal View History

2019-03-13 22:33:52 +01:00
module.exports = {
2019-10-12 20:55:30 +02:00
transform: {
'^.+\\.tsx?$': 'ts-jest',
2019-03-13 22:33:52 +01:00
},
2019-10-12 20:55:30 +02:00
testRegex: '(/__tests__/.*|(-|/)(test))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
modulePathIgnorePatterns: ['<rootDir>/.vscode/'],
moduleNameMapper: {
'^documentation(.*)$': '<rootDir>/modules/documentation/src/$1',
2019-04-27 16:21:53 +02:00
'^@romanjaros/treejs-components(.*)$': '<rootDir>/modules/treejs-components/src/$1',
'^@romanjaros/treejs-api(.*)$': '<rootDir>/modules/treejs-api/src/$1',
2019-05-26 18:40:54 +02:00
'^@romanjaros/treejs-auth(.*)$': '<rootDir>/modules/treejs-auth/src/$1',
2019-04-27 16:21:53 +02:00
'^@romanjaros/treejs-constants(.*)$': '<rootDir>/modules/treejs-constants/src/$1',
'^@romanjaros/treejs-utils(.*)$': '<rootDir>/modules/treejs-utils/src/$1',
'^@romanjaros/treejs-forms(.*)$': '<rootDir>/modules/treejs-forms/src/$1',
'^@romanjaros/treejs-localization(.*)$': '<rootDir>/modules/treejs-localization/src/$1',
2019-04-27 16:21:53 +02:00
'^@romanjaros/treejs-types(.*)$': '<rootDir>/modules/treejs-types/src/$1',
'\\.(css|less|sass|scss)$': '<rootDir>/tests/emptyMock.ts',
2019-04-21 20:27:51 +02:00
},
2019-03-13 22:33:52 +01:00
// enzyme
2019-10-12 20:55:30 +02:00
snapshotSerializers: ['enzyme-to-json/serializer'],
setupFilesAfterEnv: ['./modules/enzyme.config.ts'],
2019-03-13 22:33:52 +01:00
};