-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathstryker.config.mjs
More file actions
34 lines (33 loc) · 907 Bytes
/
Copy pathstryker.config.mjs
File metadata and controls
34 lines (33 loc) · 907 Bytes
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
const vitestConfig = process.env.STRYKER_VITEST_CONFIG ?? "vitest.config.ts"
const reportDirectory = process.env.STRYKER_REPORT_DIR ?? "reports/mutation"
const tempDirName = process.env.STRYKER_TEMP_DIR ?? ".stryker-tmp"
const testFiles = JSON.parse(process.env.STRYKER_TEST_FILES ?? "[]")
export default {
plugins: ["@stryker-mutator/vitest-runner"],
testRunner: "vitest",
vitest: {
configFile: vitestConfig,
related: process.env.STRYKER_VITEST_RELATED !== "false",
},
testFiles,
incremental: false,
inPlace: process.env.STRYKER_IN_PLACE === "true",
tempDirName,
concurrency: 2,
timeoutMS: 5_000,
timeoutFactor: 1.5,
cleanTempDir: "always",
logLevel: "warn",
reporters: ["json", "html"],
jsonReporter: {
fileName: `${reportDirectory}/mutation.json`,
},
htmlReporter: {
fileName: `${reportDirectory}/mutation.html`,
},
thresholds: {
high: 100,
low: 100,
break: null,
},
}