forked from hmcts/rpx-xui-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stryker.node.conf.js
47 lines (43 loc) · 1.01 KB
/
stryker.node.conf.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
43
44
45
46
require('dotenv-extended').load({ path: 'api/.env.defaults' });
const modulesArr = [
'accessManagement',
'activityTracker',
'amendedJurisdictions',
'auth',
'caseshare',
'health',
'healthCheck',
'lib',
'noc',
'organisations',
'searchCases',
'services',
'termsAndConditions',
'user',
'userTermsAndConditions',
'workAllocation'
];
const modulesString = modulesArr.join(",");
module.exports = function (config) {
config.set({
// fileLogLevel: 'trace',
// logLevel: 'trace',
mutate: [`api/{${modulesString}}/*.ts`, "!api/**/*.spec.ts", "!api/test/**/*.ts"],
mutator: 'typescript',
transpilers: [
'typescript'
],
testFramework: "mocha",
testRunner: "mocha",
reporters: ["clear-text", "progress", "html"],
tsconfigFile: 'tsconfig.json',
mochaOptions: {
spec: [ "dist/out-tsc/api/{,!(test)/**/}*.spec.js" ],
// timeout: 5000
},
htmlReporter: {
baseDir: 'reports/tests/mutation/node/'
},
maxConcurrentTestRunners: 2
});
}