Adds Stryker 9.6.1 as a devDep and a .stryker.conf.json scoped to the three MCP-only modules (src/state.js, src/labels.js, src/tools.js). The reused pure lib in frontend/src/lib/ is deliberately excluded — it has its own 92-test vitest suite, and mutating it here would just re-test it under a different label. Two non-obvious config choices, both learned the hard way: · inPlace: true. Stryker's default copies the project to a sandbox, but the MCP test file imports "../../frontend/src/lib/*.js" — a relative path that breaks the moment the source is moved. inPlace mutates files where they live, keeps a backup in .stryker-tmp/backup-*/ during the run, and restores on exit. Verified: after the run, `git diff` shows no changes and all 92+32 tests still pass. · vitest.related: false. The vitest runner's related-files mode uses static import analysis to pick which tests to run per mutant; it can't see the cross-directory imports and reported "no tests were found". Disabling it means every mutant runs the full suite — slower (~54s for 847 mutants) but accurate. Baseline first run: 39.32% mutation score (333 killed, 330 survived, 184 no-coverage). Most of the survivors are zod schema string literals (the unit suite bypasses the SDK's validation by calling handlers directly), and the bulk of the no-coverage debt lives in state.js — file watching, multi-user resolution and the mtime fallback paths. The HTML report at mcp/reports/mutation/mutation.html (gitignored, regenerated per run) shows each survived mutant inline. Run with `npm run mutation:test` from mcp/.
21 lines
493 B
Plaintext
21 lines
493 B
Plaintext
# Exercise media — fetched on first `docker compose up` (or via scripts/fetch-media.sh)
|
|
media/img/
|
|
media/gif/
|
|
|
|
# Runtime data — users, passkeys, per-user state, session secret
|
|
data/
|
|
|
|
# Local config
|
|
.env
|
|
|
|
# Build output / deps
|
|
frontend/dist/
|
|
node_modules/
|
|
*.log
|
|
.DS_Store
|
|
|
|
# Mutation-testing artifacts (mcp/) — reports/ is the HTML output, .stryker-tmp/ holds the
|
|
# backing copy used by `inPlace` mode during a run. Both regenerated on every `stryker run`.
|
|
mcp/reports/
|
|
mcp/.stryker-tmp/
|