Skip to content

Add helper for asserting event field count matches expected schema #346

@Chucks1093

Description

@Chucks1093

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions