forked from Ethereal-Future/FuTuRe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstryker.config.mjs
More file actions
43 lines (43 loc) · 1.01 KB
/
Copy pathstryker.config.mjs
File metadata and controls
43 lines (43 loc) · 1.01 KB
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
// @ts-check
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
export default {
packageManager: 'npm',
reporters: ['html', 'clear-text', 'progress', 'json'],
testRunner: 'vitest',
// Target critical path source files only
mutate: [
'frontend/src/utils/validateAmount.js',
'frontend/src/utils/formatBalance.js',
'frontend/src/utils/errorMessages.js',
'frontend/src/utils/validateStellarAddress.js',
],
vitest: {
configFile: 'vitest.mutation.config.js',
},
coverageAnalysis: 'perTest',
thresholds: {
high: 80,
low: 60,
break: 50,
},
htmlReporter: {
fileName: 'mutation-reports/mutation-report.html',
},
jsonReporter: {
fileName: 'mutation-reports/mutation-report.json',
},
timeoutMS: 10000,
timeoutFactor: 1.5,
concurrency: 4,
disableTypeChecks: true,
ignorePatterns: [
'node_modules',
'dist',
'build',
'mutation-reports',
'mobile-tests',
'migration-logs',
'test-reports',
'.stryker-tmp',
],
};