-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unhandled errors do not provide enough information to debug #3257
Comments
Side note for anyone else who experiences this issue, we are able to get our CI pipeline to pass by using this option in our vitest config:
We do not look at this as a long-term solution, but without being able to debug these unhandled exceptions we are using it for now. |
This seems to be the same non-deterministic unhandled rejection experienced by folks here: #1692 (comment) |
It would be great to add more information to these errors for sure. Without being able to reproduce this issue it's not possible though. We'll need to be able to reproduce the issue to see if it's possible to capture more information. |
had this while trying to migrate a legacy react codebase to vite.
I can't code the share to reproduce, but here how it is basically happened. in a util function, I have an async API call, which is a wrapper. wrapper rejects, but the util function does not catch this error. I call this util function inside a
this is from a nested component where the parent of its parent is running in a snapshot test with Hope it can help to track this issue. |
Hello @jsakas. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Describe the bug
We are migrating a large code base from webpack/jest to vite/vitest. Our test suite has about 500 specs, and we are receiving unhandled exceptions in CI only. These unhandled exceptions fail intermittently every 3 - 4 runs. When we ssh into the server and run the same command, they always pass.
The primary issue that we face is that we cannot trace these errors back to an individual test spec.
Reproduction
I am not able to provide a reproduction due to private software which is quite large.
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: