Skip to content

test: add 18 edge-case validation tests#96

Merged
EricGrill merged 1 commit intomainfrom
test/edge-case-validation
Apr 6, 2026
Merged

test: add 18 edge-case validation tests#96
EricGrill merged 1 commit intomainfrom
test/edge-case-validation

Conversation

@EricGrill
Copy link
Copy Markdown
Contributor

Summary

  • Adds 18 new tests covering untested 4xx validation paths across shift, lot, and payroll routes
  • Shift: farm/foreman 404, checkin on closed shift 409, missing worker_id, close with no workers
  • Lot: shift not found, shift still open, transfer missing/invalid fields, lot not found
  • Payroll: shift not found, shift not closed, no eligible workers
  • Backend now at 123 tests total, all passing

Test plan

  • node --test test/api.test.js — 123 pass, 0 fail

🤖 Generated with Claude Code

Cover all untested 4xx paths: missing/invalid fields, nonexistent
resources, closed-shift rejection, and empty worker lists. Backend
now at 123 tests total.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@EricGrill EricGrill force-pushed the test/edge-case-validation branch from 2350f4e to 12a9c9d Compare April 6, 2026 09:34
@EricGrill EricGrill merged commit e194f88 into main Apr 6, 2026
@EricGrill EricGrill deleted the test/edge-case-validation branch April 6, 2026 09:35
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