Skip to content
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

Fix: prevent infinte loop when an error has circular references #314

Closed
wants to merge 2 commits into from
Closed

Fix: prevent infinte loop when an error has circular references #314

wants to merge 2 commits into from

Conversation

11joselu
Copy link
Contributor

Relates to #284

When there are no axios mock in __mocks__ folder. Vitest do not mock axios module, so axios throw Error: connect ECONNREFUSED 127.0.0.1:80.

This error has Circular references to it so serializeError enters in a recursive call.

image

Now:

image

@netlify
Copy link

netlify bot commented Dec 25, 2021

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: 151877f

🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/61c76fda639ea0000880ea19

😎 Browse the preview: https://deploy-preview-314--vitest-dev.netlify.app

@11joselu 11joselu closed this Dec 25, 2021
chaii3 pushed a commit to chaii3/vitest that referenced this pull request May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant