E2E Testing of event handlers in NestJS

Viewed 250

How can you test that the proper event handler was called after specific event was emitted by an endpoint? (E2E integration test)

It looks like jest does not call EventEmitter2 handlers.

Thx.

0 Answers
Related