bikk-uk / jest-mock-express

A lightweight Jest mock for unit testing Express
MIT License
49 stars 7 forks source link

Implement Readable mocks on Request #72

Closed aboyce closed 2 years ago

aboyce commented 2 years ago

Mock implementations for the Express Request have not been implemented deep enough. These need to be implemented to prevent type errors when used.

Express Request hierarchy:

Implement the properties and functions for stream.Readable and event.EventEmitter.

aboyce commented 2 years ago

Express Request hierarchy as part of v2 release: