-
Notifications
You must be signed in to change notification settings - Fork 0
/
stryker.conf.cjs
41 lines (41 loc) · 1.02 KB
/
stryker.conf.cjs
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
/**
* @type {import('@stryker-mutator/api/core').StrykerOptions}
*/
// eslint-disable-next-line unicorn/prevent-abbreviations -- stryker needs stryker.conf.js
module.exports = {
mutate: ['./src/**/*.ts'],
ignorePatterns: [
'**/node_modules/**',
'**/.circleci/**',
'**/.github/**',
'**/.husky/**',
'**/.yarn/**',
'**/.stryker-tmp/**',
'**/stats/**',
'**/docs/**',
'**/documentations/**',
'**/reports/**',
'**/coverage/**',
'**/build/**',
'**/dist/**',
'**/lib/**',
],
packageManager: 'yarn',
reporters: ['html', 'clear-text', 'progress', 'dashboard'],
htmlReporter: {
fileName: './reports/stryker/mutation.html',
},
jsonReporter: {
fileName: './reports/stryker/mutation.json',
},
testRunner: 'jest',
jest: {
projectType: 'custom',
configFile: 'jest.config.cjs',
enableFindRelatedTests: true,
},
coverageAnalysis: 'perTest',
checkers: ['typescript'],
tsconfigFile: 'tsconfig.stryker.json',
thresholds: { high: 90, low: 65, break: 60 },
};