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
timeout error when testing fetch with nock #3624
Comments
anyone home? |
It would be nice to see some response here |
Could you convert the repl.it repro to Github repository or Stackblitz? |
Unfortunately having the same problem. Some details can be found here. |
I have the same problem. |
I'm not familiar with With the latest stable (13.5.4), it doesn't timeout anymore but it looks like an error from Then, I tested with beta (14.0.0-beta.4) and this one looks working for me: I'm not sure how Jest has made it work, but I don't think there's anything actionable from Vitest for this issue. |
Hello @rburgst. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
@hi-ogawa was kind enough to do that: https://stackblitz.com/edit/vitest-dev-vitest-khkmge?file=test%2Fnock.test.ts |
@rburgst I think this error is simply due to |
Describe the bug
when mocking network requests with
nock
then vitest produces a timeout where jest works without problems.Any help would be appreciated
Reproduction
https://replit.com/@rburgst/vitest-nock-problem?v=1
https://stackblitz.com/edit/vitest-dev-vitest-khkmge?file=test%2Fnock.test.ts
npm install
npm test
expected
the test should succeed and log the fetch result
actual
the test times out after 5s
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: