forked from wangeditor-team/wangEditor-v5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (22 loc) · 702 Bytes
/
Copy pathjest.config.js
File metadata and controls
22 lines (22 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'],
}