Commit f800472
committed
feat(nestjs-notifications): add auth-notification bridge and demo e2e tests
Connect nestjs-auth with nestjs-notifications via EventEmitter pattern:
- Add AUTH_EVENTS constants and typed event interfaces in nestjs-auth
- Add AuthNotificationModule with listener for auth events (verify-email, welcome, password-reset)
- Add isGlobal support to NotificationModule for cross-module provider access
- Add event-emitter as optional peer dependency in nestjs-notifications
- Add comprehensive e2e test suite (34 tests) for demo app with Docker orchestration
- Add unit tests for event emission and auth notification listener1 parent 2c53758 commit f800472
14 files changed
Lines changed: 1165 additions & 3 deletions
File tree
- apps/demo
- test
- packages
- nestjs-auth/src
- events
- nestjs-notifications
- src
- integrations/auth
- interfaces
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments