1 | const path = require('path');
|
2 | module.exports = {
|
3 | include: ['src/**/*.js', 'src/**/*.jsx', 'src/**/*.ts', 'src/**/*.tsx'],
|
4 | exclude: ['**/*.d.ts', '**/*.mock.ts', '**/*.spec.ts', '**/*.test.ts'],
|
5 | all: true,
|
6 | cache: false,
|
7 | reporter: ['html', 'lcov', 'text'],
|
8 | 'report-dir': path.resolve(process.cwd(), '.reports/coverage'),
|
9 | 'temp-dir': path.resolve(process.cwd(), '.reports/nyc'),
|
10 | require: [path.resolve(process.cwd(), 'babel.register.js')],
|
11 | watermarks: {
|
12 | lines: [50, 75],
|
13 | functions: [50, 75],
|
14 | branches: [50, 75],
|
15 | statements: [50, 75],
|
16 | },
|
17 | sourceMap: false,
|
18 | instrument: true,
|
19 | statements: 50,
|
20 | branches: 50,
|
21 | functions: 50,
|
22 | lines: 50,
|
23 | };
|