responseProps
#1049
Replies: 4 comments
-
Could we add |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yep, we can. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
🚀 No manual mocking of request/response needed in the recently released v20, @sauyeung |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am testing an endpoint that uses the express-rate-limit middleware, and pass
responseProps
totestEndpoint
as follows:The
responseMock
object does have these attributes added when testing cases of this endpoint that are expected to succeed; but not added when they are expected to fail; and got response.setHeader is not a function error. Is this an issue or expected? If it's expected, are there any ways to make it work?Beta Was this translation helpful? Give feedback.
All reactions