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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
3.22.1
Plugin version
0.3.3
Node.js version
16.4.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.2.1
Description
I'm having an express application which will transition completely to Fastify in the future. We want to write integration tests for this application and leverage fastify.inject but when executing a request, the payload is always empty.
Unfortunately inject() does not work with Express :/. Express mutates the prototype of the Node.js request and response object and currently we have not figured out how to deal with it.
middle pass what the middleware needs and run it - which is just fastify fastify-express use express directly - which is both fastify (request) and express (response)
Prerequisites
Fastify version
3.22.1
Plugin version
0.3.3
Node.js version
16.4.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.2.1
Description
I'm having an express application which will transition completely to Fastify in the future. We want to write integration tests for this application and leverage fastify.inject but when executing a request, the payload is always empty.
To run our tests we are using Jest (27.2.5).
Steps to Reproduce
Expected Behavior
I would expect a body and not an empty string.
The text was updated successfully, but these errors were encountered: