Skip to content

test: add 8 provenance route edge-case tests#135

Merged
EricGrill merged 1 commit intomainfrom
test/provenance-route-tests
Apr 6, 2026
Merged

test: add 8 provenance route edge-case tests#135
EricGrill merged 1 commit intomainfrom
test/provenance-route-tests

Conversation

@EricGrill
Copy link
Copy Markdown
Contributor

Summary

  • Adds 8 new tests for the /provenance/:lotId route covering payment_summary structure, worker field validation, lot/farm/shift relational consistency, metadata JSON parsing, and direct /provenance/:lotId/qr SVG endpoint
  • Backend test count: 105 → 113 (all passing)
  • Serves goal Foreman closes shift, records to Liquid (simulated) #13: 100% unit test coverage

Test plan

  • All 113 tests pass locally (npm test)
  • No existing tests broken

🤖 Generated with Claude Code

Cover payment_summary, worker fields, lot/farm/shift consistency,
metadata parsing, and direct /provenance/:lotId/qr endpoint tests.
Backend: 105 → 113 tests passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@EricGrill EricGrill merged commit 5a9fadf into main Apr 6, 2026
4 of 6 checks passed
@EricGrill EricGrill deleted the test/provenance-route-tests branch April 6, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant