~/code/billing-apiTuesday
> the parser tests still fail on the new invoice format ... several tries later ...Found it. The fixtures have to be rebuilt for the new schema before the parser tests mean anything, and the real check is that each invoice total equals its line items.> save how you validated that to memoryfmp save_mem: secret check passed, saved to project billing-api
Validate the invoice parser
billing-apiv1 in use- Steps
npm run fixtures -- --schema {schema}, then npm test parser- Check
- Each invoice total equals the sum of its line items
- Don't
- Edit snapshots by hand to make a test pass
Run it as /mcp__fmp__validate-invoice-parser
~/code/billing-apiThe next week, new session
> use fmp to find how we validate the invoice parser, then run it on the v4 branchuse fmp to validate the invoice parser on v4fmp find_mem "validate the invoice parser": 1 matchFollowing "Validate the invoice parser" with schema = v4. Rebuilt the fixtures, ran the parser tests, compared totals to line items.✓ Parser tests pass, totals match