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
Which support plan is this issue covered by? (Community, Sponsor, Enterprise): Community
Currently blocking your project/work? (yes/no): yes
Affecting a production system? (yes/no): yes
Context
Node.js version:
Release Line of Formidable (Legacy, Current, Next): Current
Formidable exact version: 2.0.1
Environment (node, browser, native, OS): node
Used with (popular names of modules): express, Jest
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
TypeError: Cannot set property domain of [object process] which has only a getter
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)
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: