-
-
Notifications
You must be signed in to change notification settings - Fork 17
fix: should print error correctly when worker unexpectedly exit #837
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
Conversation
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes error reporting when worker setup fails by adding global process event handlers and conditionally excluding Node.js-specific flags when running in Deno.
- Adds global
uncaughtExceptionandunhandledRejectionevent handlers to catch worker setup errors - Introduces
isDenodetection to conditionally exclude Node.js-specific flags from workerexecArgv - Extracts error handling logic into a reusable
handleUnexpectedExitfunction
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/core/src/utils/helper.ts | Adds isDeno constant to detect Deno runtime |
| packages/core/src/pool/index.ts | Conditionally excludes Node.js experimental flags when running in Deno |
| packages/core/src/cli/commands.ts | Adds global process error handlers and extracts handleUnexpectedExit helper function |
| e2e/cli/fixtures/worker.error.config.ts | Adds test fixture config with invalid worker flag to test error handling |
| e2e/cli/config.test.ts | Adds test case to verify worker setup errors are printed correctly |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Related Links
#828
Checklist