Commit b60ffb2
Yasir Abdulsalam
test: add property-based fuzz coverage for Zod validators
- Add fuzz tests for all Zod schemas in invoices.ts, bids.ts, settlements.ts, shared.ts
- Use fast-check to generate malformed payloads: unicode, very large ints, NaN/Infinity
- Test prototype-pollution attempts (__proto__, constructor) cannot mutate output
- Assert validators never throw unhandled errors on any input
- Covers all exported schemas with 100% test pass rate (31/31 tests pass)
- Security-checklist.md already has comprehensive fuzz strategy documentation (Section 12)
Closes #23561 parent 3b74658 commit b60ffb2
2 files changed
Lines changed: 480 additions & 91 deletions
0 commit comments