feat: restructure events payload (#8143)

* refactor: restructure events payload

Breaking change: This PR changes the event payload accepted by the event
listeners

* refactor: fix failing tests and implement feedback

* add integration tests

* fix timeout

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
This commit is contained in:
Harminder Virk
2024-07-16 17:09:16 +01:00
committed by GitHub
co-authored by Adrien de Peretti
parent 5813216c88
commit f579f0b3be
26 changed files with 194 additions and 111 deletions
@@ -9,7 +9,7 @@ export function buildExpectedEventMessageShape(options: {
options?: Record<string, unknown>
}): EventBusTypes.Message {
return {
eventName: options.eventName,
name: options.eventName,
metadata: {
action: options.action,
eventGroupId: options.eventGroupId,