forked from AgesEmpire/StellarSwipe-Backends
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstryker.config.ts
More file actions
59 lines (52 loc) · 2.54 KB
/
Copy pathstryker.config.ts
File metadata and controls
59 lines (52 loc) · 2.54 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
55
56
57
58
59
import type { Config } from '@stryker-mutator/api/config';
const config: Config = {
// ── Mutation scope ────────────────────────────────────────────────────────
// Scoped to trade execution orchestrator and risk-gate to keep runs fast
// and focus mutation testing where correctness matters most.
mutate: [
'src/trades/services/trade-execution-orchestrator.service.ts',
'src/risk/risk-gate/risk-gate.service.ts',
'src/common/logger/log-redaction.ts',
],
// ── Runner / checker ──────────────────────────────────────────────────────
testRunner: 'jest',
jest: {
// Re-use the project's own Jest config so coverage and transform rules
// are consistent. Stryker overrides testMatch internally.
configFile: 'jest.config.js',
enableFindRelatedTests: true,
},
checkers: ['typescript'],
tsconfigFile: 'tsconfig.json',
// ── Reporters ─────────────────────────────────────────────────────────────
reporters: ['html', 'clear-text', 'progress', 'json'],
htmlReporter: {
fileName: 'reports/mutation/mutation.html',
},
jsonReporter: {
fileName: 'reports/mutation/mutation.json',
},
// ── Thresholds ────────────────────────────────────────────────────────────
// A baseline of 60 is intentionally conservative for the first run;
// tighten after surviving mutants are addressed.
thresholds: {
high: 80,
low: 60,
break: 50,
},
// ── Performance ───────────────────────────────────────────────────────────
concurrency: 2,
timeoutMS: 10_000,
timeoutFactor: 1.5,
// ── Ignores ───────────────────────────────────────────────────────────────
// Exclude logger noise, type assertions, and explicit coverage-ignore blocks.
ignorePatterns: [
'node_modules',
'dist',
'reports',
'coverage',
'src/migrations',
],
ignoreStatic: true,
};
export default config;