Skip to content

[Testing] No unit test for backend/src/seed/data/remittance.ts field shape #1504

Description

@grantfox-oss

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters
backend/src/seed/data/remittance.ts hand builds demo remittance rows that are inserted directly into the database. Nothing asserts the fields it produces match the remittanceSchemas.ts shape, so a schema change can silently desync from the seed data.

Acceptance criteria

  • Add a test that validates each seed remittance record against backend/src/schemas/remittanceSchemas.ts
  • Test fails loudly if a required field is missing or mistyped

Files to touch

  • backend/src/seed/data/remittance.ts
  • backend/src/schemas/remittanceSchemas.ts

Out of scope
Rewriting the seed data generator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendIssues related to backend developmentgood first issueGood for newcomerstestingAdding or fixing tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions