Skip to content

Commit f800472

Browse files
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 listener
1 parent 2c53758 commit f800472

14 files changed

Lines changed: 1165 additions & 3 deletions

File tree

apps/demo/jest.e2e.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Config } from 'jest';
2+
3+
const config: Config = {
4+
moduleFileExtensions: ['js', 'json', 'ts'],
5+
rootDir: '.',
6+
testRegex: '.e2e-spec.ts$',
7+
transform: {
8+
'^.+\\.ts$': 'ts-jest',
9+
},
10+
testEnvironment: 'node',
11+
testTimeout: 30000,
12+
};
13+
14+
export default config;

0 commit comments

Comments
 (0)