Summary
Event tests assert individual field values but not the total number of fields in the payload. A helper that asserts the event contains exactly the expected number of fields catches accidental additions or removals that would break indexers.
Scope
- add a test helper that asserts an emitted event contains exactly the expected number of fields
- apply the helper to at least two existing event tests
- document the expected field count alongside each event schema
Acceptance Criteria
- the helper fails if the event contains more or fewer fields than expected
- at least two existing event tests are updated to use the helper
- the expected field counts are defined as named constants
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg
Summary
Event tests assert individual field values but not the total number of fields in the payload. A helper that asserts the event contains exactly the expected number of fields catches accidental additions or removals that would break indexers.
Scope
Acceptance Criteria
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg