test: should not report on wrong case when error#10185
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the concurrent test runner tasks in order to prevent unhandled promise rejections from interfering with running tests and to improve the error handling mechanism.
- Refactored the promise and chain handling in the test creator to use .catch for error prevention.
- Added a null-check for bundles in the basic processor and standardized test descriptions in watch and new-incremental test cases.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/rspack-test-tools/src/test/creator.ts | Updated promise handling and error propagation. |
| packages/rspack-test-tools/src/processor/basic.ts | Added bundle null-check to avoid processing errors. |
| packages/rspack-test-tools/src/case/watch.ts | Standardized description string format. |
| packages/rspack-test-tools/src/case/new-incremental.ts | Standardized description string format. |
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
CodSpeed Performance ReportMerging #10185 will not alter performanceComparing 🎉 Hooray!
|
Summary
Should add
.catchto runner tasks of concurrent test cases. To prevent the error being thrown tounhandledRejectionwhich will be captured by jest and attach to currently running test cases.Checklist