-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjest.config.js
37 lines (37 loc) · 915 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
module.exports = {
testEnvironment: 'node',
modulePathIgnorePatterns: ['node_modules'],
testMatch: ['<rootDir>/__tests__/**/*.js'],
rootDir: './',
reporters: [
'default',
[
'jest-junit',
{
suiteName: 'Lambda Micro Tests',
outputDirectory: './test-reports/unit-tests/',
},
],
[
'./node_modules/jest-html-reporter',
{
pageTitle: 'Lambda Micro Test Report',
outputPath: './test-reports/unit-tests/index.html',
},
],
],
collectCoverage: true,
coverageProvider: 'babel',
coverageDirectory: './test-reports/coverage/',
coverageReporters: ['json', 'lcov', 'text', 'clover'],
collectCoverageFrom: ['<rootDir>/lib/**/*.js', '!**/node_modules/**'],
coverageThreshold: {
'./lib/': {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
moduleFileExtensions: ['js'],
};