Summary
Existing buy event tests assert the payload fields but not how many events are emitted. A regression test that counts emitted events on a successful buy confirms exactly one buy event is emitted and no extra events are produced as a side effect.
Scope
- add a regression test that performs a successful buy and collects all emitted events
- assert exactly one buy event is emitted
- assert no unexpected event types appear alongside the buy event
Acceptance Criteria
- exactly one buy event is emitted on a successful buy
- no extra or unexpected events are emitted
- the test fails if event count changes
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg
Summary
Existing buy event tests assert the payload fields but not how many events are emitted. A regression test that counts emitted events on a successful buy confirms exactly one buy event is emitted and no extra events are produced as a side effect.
Scope
Acceptance Criteria
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg