-
Notifications
You must be signed in to change notification settings - Fork 9
/
jest.config.json
48 lines (48 loc) · 1.12 KB
/
jest.config.json
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
42
43
44
45
46
47
48
{
"preset": "ts-jest",
"transform": {
"^.+\\.(js|ts)$": "ts-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!(@cloudinary/transformation-builder-sdk)).*\\.js$"
],
"testEnvironment": "jsdom",
"bail": true,
"resolver": "<rootDir>/src/internal/utils/jest-ts-resolver.cjs",
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts",
"<rootDir>/scripts/**/*.ts",
"!<rootDir>/scripts/createEntrypoints.ts",
"!<rootDir>/src/internal/utils/cloneDeep.ts",
"!<rootDir>/scripts/copyPackageJsonToSrc.ts.ts",
"!<rootDir>/src/backwards/**/*.ts"
],
"modulePaths": [
"<rootDir>/src"
],
"modulePathIgnorePatterns": [
"<rootDir>/dist/"
],
"coverageThreshold": {
"global": {
"branches": 84.9,
"functions": 25,
"lines": 70,
"statements": 75
}
},
"globals": {
"ts-jest": {
"diagnostics": false
}
},
"reporters": [
"default",
["jest-html-reporters", {
"publicPath" : "./public/progress/",
"filename": "cloudinary-base-progress-report.html",
"pageTitle": "Cloudinary JS v2 Progress Report",
"expand": true
}]
]
}