forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
42 lines (42 loc) · 1.12 KB
/
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
42
module.exports = {
transform: {
'^.+\\.(js|jsx|ts|tsx)$': '<rootDir>/tools/test-transform.js'
},
testMatch: [
'<rootDir>/tests/**/*.test.ts'
],
cacheDirectory: '<rootDir>/node_modules/.cache/jest',
moduleNameMapper: {
'^.+\\.svelte$': '<rootDir>/tools/svelte-mock.js'
},
coverageReporters: ['html-spa'],
collectCoverageFrom: [
'**/*.ts'
],
coveragePathIgnorePatterns: [
'/node_modules/'
],
coverageDirectory: '<rootDir>/reports/coverage',
// coverageThreshold: {
// global: {
// "branches": 100,
// "functions": 100,
// "lines": 100,
// "statements": 100,
// }
// },
reporters: [
'default',
[
'jest-html-reporter',
{
outputPath: '<rootDir>/ci/jest-report/units/index.html',
pageTitle: 'DivKit report',
includeFailureMsg: true,
includeConsoleLog: true,
includeSuiteFailure: true,
includeObsoleteSnapshots: true
}
]
]
};