You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned before in issues #88 and #245 (which were both closed without resolving!) the sendFile method is missing from this implementation. The TypeScript typedefs say it is there, but it is not at runtime.
To reproduce in a Jest test:
import*ashttpMockfrom'node-mocks-http';constres=httpMock.createResponse();jest.spyOn(res,'sendFile');// ^^^^^^^^ Property `sendFile` does not exist in the provided object
My temporary workaround to allow me to mock this method is to do this:
As mentioned before in issues #88 and #245 (which were both closed without resolving!) the
sendFile
method is missing from this implementation. The TypeScript typedefs say it is there, but it is not at runtime.To reproduce in a Jest test:
My temporary workaround to allow me to mock this method is to do this:
The text was updated successfully, but these errors were encountered: