feat(core-testing): RecordingEventBus

Adds RecordingEventBus implementing IEventBus for use in unit tests.
Validates payloads via the descriptor schema, records all publish calls,
and delivers events to subscribed handlers synchronously in subscription order.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 12:05:34 +02:00
parent 590b92f190
commit 1357e45f55
5 changed files with 74 additions and 0 deletions

View File

@@ -21,8 +21,10 @@
"test": "vitest run"
},
"dependencies": {
"@repo/core-events": "workspace:*",
"@repo/core-shared": "workspace:*",
"@testing-library/jest-dom": "^6.5.0",
"zod": "^3.23.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.0",
"@trpc/client": "^11.0.0",