- TypeScript
- Node.js
- Testing
Mutation testing for code changes
A passing test suite tells you tests ran, not that they'd catch a bug. ai-eng mutates the lines a change touches, flipping a condition, a boundary or a sign, and checks whether the existing tests notice.
27 of 59
real bugs reintroduced from the zod library were flagged. The existing tests caught 0.
Code (opens in a new tab)Benchmark write-up (opens in a new tab)
packages/zod/src/v4/core/to-json-schema.ts TRUST 40% ~read closely
mutation score 40% (6/15 killed)
SURVIVED L163 optional-chain: params?.target -> params.target
SURVIVED L168 nullish-default: params.processors ?? {} -> params.processors