You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
799 B
29 lines
799 B
module.exports = {
|
|
roots: ['<rootDir>/packages'],
|
|
testEnvironment: 'jsdom',
|
|
testMatch: ['**/(*.)+(spec|test).+(ts|js|tsx)'],
|
|
transform: {
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
'^.+\\.js$': 'ts-jest',
|
|
},
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: '<rootDir>/tsconfig.json',
|
|
},
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
moduleNameMapper: {
|
|
'^.+\\.(css|less)$': '<rootDir>/tests/utils/stylesMock.js',
|
|
},
|
|
transformIgnorePatterns: ['node_modules/(?!(html-void-elements)/)'],
|
|
setupFilesAfterEnv: ['<rootDir>/tests/setup/index.ts'],
|
|
collectCoverageFrom: ['<rootDir>/packages/**/src/**/*.(ts|tsx)'],
|
|
coveragePathIgnorePatterns: [
|
|
'dist',
|
|
'locale',
|
|
'index.ts',
|
|
'config.ts',
|
|
'browser-polyfill.ts',
|
|
'node-polyfill.ts',
|
|
],
|
|
}
|