-
-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError when testing with Jest #886
Comments
Hey @Sethlans, sorry for the delay. Sounds like some jest environment problem. No idea. We are using Jest for its tests too and don't have problems. Maybe it could be because of the |
For anyone looking, downgrading to Jest@26 fixed for me the The error comes from the It must be something with Jest@27 breaking changes. However, couldn't pinpoint what exactly. |
Context
What are you trying to achieve or the steps to reproduce?
I have created an express middleware to parse the raw data incoming from a multipart request.
The middleware itself is working properly and doing its job.
The issue is when I test my endpoint with jest. I get the error
when calling form.parse()
It looks like Jest put some limitations to the process object.
The issue seems to be caused by the dependency asap
requestFlush (/node_modules/asap/raw.js:83:40)
What was the result you got?
Test failing due to an issue with a dependency
What result did you expect?
Test running correctly like when the service runs
The text was updated successfully, but these errors were encountered: