mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Install and configure mutation testing (Stryker for client, go-gremlins for server), load testing (k6), chaos testing (toxiproxy), WAF middleware (Coraza with OWASP rules, opt-in via waf_enabled config), and Zod for runtime schema validation. All tools verified building cleanly.
31 lines
630 B
JavaScript
31 lines
630 B
JavaScript
// @ts-check
|
|
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
|
|
const config = {
|
|
testRunner: "vitest",
|
|
checkers: ["typescript"],
|
|
tsconfigFile: "tsconfig.json",
|
|
vitest: {
|
|
configFile: "vitest.config.ts",
|
|
},
|
|
mutate: [
|
|
"src/lib/**/*.ts",
|
|
"src/stores/**/*.ts",
|
|
"!src/lib/types.ts",
|
|
"!src/**/*.d.ts",
|
|
],
|
|
reporters: ["html", "clear-text", "progress"],
|
|
htmlReporter: {
|
|
fileName: "reports/mutation/index.html",
|
|
},
|
|
thresholds: {
|
|
high: 80,
|
|
low: 60,
|
|
break: 50,
|
|
},
|
|
concurrency: 4,
|
|
timeoutMS: 30000,
|
|
tempDirName: ".stryker-tmp",
|
|
};
|
|
|
|
export default config;
|