Repository navigation
Expand file tree
/
Copy pathstryker.semantics.config.mjs
More file actions
54 lines (52 loc) · 1.56 KB
/
Copy pathstryker.semantics.config.mjs
File metadata and controls
54 lines (52 loc) · 1.56 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
44
45
46
47
48
49
50
51
52
53
54
import { mutationRanges } from "./scripts/lib/reverse-tools-mutation-targets.mjs";
const config = {
$schema: "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
testRunner: "command",
commandRunner: {
command: "npx vitest run --config vitest.reverse-tools-semantics.config.ts",
},
plugins: ["@stryker-mutator/typescript-checker"],
checkers: ["typescript"],
tsconfigFile: "tsconfig.reverse-tools-mutation.json",
typescriptChecker: {
prioritizePerformanceOverAccuracy: true,
},
coverageAnalysis: "off",
thresholds: { break: null },
ignorePatterns: ["/.cache/rea-command-locks/**", "/coverage/**"],
concurrency: 2,
timeoutMS: 30000,
reporters: ["clear-text", "progress", "html", "json"],
jsonReporter: { fileName: "reports/mutation/reverse-tools-semantics.json" },
htmlReporter: { fileName: "reports/mutation/reverse-tools-semantics.html" },
};
export default {
...config,
mutate: [
...mutationRanges("src/cutter/CutterBridgeClient.ts", [
{
kind: "expression",
text: "status.data.current_file === undefined",
},
{
kind: "expression",
text: "response.current_file === undefined",
},
]),
...mutationRanges("src/rizin/RizinDebugSessionManager.ts", [
{
kind: "declaration",
name: "isRizinCommandDeadlineExpired",
},
{
kind: "declaration",
name: "snapshot",
withinBlockWithBinding: "output",
},
{
kind: "declaration",
name: "createRizinCommandTimeoutEvidence",
},
]),
],
};