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'm new to mswjs. I tried to use FetchInterceptor in a Mocha test, and the test would always hang indefinitely, with no console output, until I hit CTRL-C in the terminal (SIGINT), at which point all the console output suddenly dumbs and the test reports success or fail and other tests continue. The console output showed two things: Everything ran to completion, and did so immediately based on the timestamps printed in the console log.
To isolate this and eliminate Mocha as a culprit, I created the following script:
executing node <path to above script> results in everything running as expected all they way to the last console write, but the process doesn't exit. Not until a SIGINT.
Commenting out either interceptor.apply() or const resp = await fetch(requestURL) eliminates the hang. The script is so simple, I can't imagine what I am doing wrong.
Node v21.4.0
@mswjs/interceptors v0.25.13
The text was updated successfully, but these errors were encountered:
I'm new to
mswjs
. I tried to use FetchInterceptor in a Mocha test, and the test would always hang indefinitely, with no console output, until I hit CTRL-C in the terminal (SIGINT), at which point all the console output suddenly dumbs and the test reports success or fail and other tests continue. The console output showed two things: Everything ran to completion, and did so immediately based on the timestamps printed in the console log.To isolate this and eliminate Mocha as a culprit, I created the following script:
executing
node <path to above script>
results in everything running as expected all they way to the last console write, but the process doesn't exit. Not until a SIGINT.Commenting out either
interceptor.apply()
orconst resp = await fetch(requestURL)
eliminates the hang. The script is so simple, I can't imagine what I am doing wrong.Node v21.4.0
@mswjs/interceptors v0.25.13
The text was updated successfully, but these errors were encountered: