forked from ustbhuangyi/better-scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (41 loc) · 937 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
"verbose": true,
globals: {
'ts-jest': {
isolatedModules: true
}
},
"roots": ["<rootDir>"],
"cache": false,
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|js)$",
"testPathIgnorePatterns": [
'/__tests__/__utils__'
],
"transform": {
".ts": "ts-jest"
},
"testEnvironment": "jsdom",
"moduleFileExtensions": [
"ts",
"js"
],
"moduleNameMapper": {
'^@better-scroll/(.*)/(.*)$': '<rootDir>/packages/$1/$2',
'^@better-scroll/(.*)$': '<rootDir>/packages/$1/src/index',
'^@/(.*)$': '<rootDir>/$1'
},
"coverageDirectory": "<rootDir>/tests/coverage",
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/",
"/__tests__/"
],
"coverageReporters": ['json', 'text', 'lcov', 'clover'],
"coverageThreshold": {
},
"collectCoverageFrom": [
"packages/**/*.{ts}",
"!packages/**/dist/**",
"!packages/better-scroll/**"
]
}