forked from fuzhenn/maptalks.deckgl
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (35 loc) · 859 Bytes
/
jest.config.js
File metadata and controls
35 lines (35 loc) · 859 Bytes
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
module.exports = {
verbose: true,
transform: {
"^.+\\.js$": "babel-jest",
"^.+\\.(ts|tsx)$": "ts-jest"
},
testEnvironment: "node",
testRegex: "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
moduleFileExtensions: [
"ts", "tsx", "js", "jsx", "json", "node"
],
testPathIgnorePatterns: ["/dist/", "/node_modules/"],
watchPathIgnorePatterns: ["/dist/", "/node_modules/"],
collectCoverage: true,
coveragePathIgnorePatterns: [
"/node_modules/",
"/test/"
],
coverageThreshold: {
"global": {
"branches": 70,
"functions": 70,
"lines": 70,
"statements": 70
}
},
collectCoverageFrom: [
"packages/*.{js,ts,tsx}"
],
clearMocks: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'clover'],
modulePathIgnorePatterns: ['dist'],
roots: ['<rootDir>/packages'],
};