-
-
Notifications
You must be signed in to change notification settings - Fork 723
test: rewrite hot test cases with NEXT_HMR #11882
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 rspack canceled.
|
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 rewrites the hot test cases to use the new NEXT_HMR
API instead of the legacy callback-based NEXT
function for hot module replacement updates, significantly simplifying the test code structure. The changes also include removal of legacy helper files and update the HMR test infrastructure.
- Refactored test cases from Promise-based callback pattern to async/await using
NEXT_HMR()
- Removed legacy update helper files (
update.js
,update.esm.js
) - Updated test infrastructure to handle the new HMR API pattern
Reviewed Changes
Copilot reviewed 171 out of 171 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
Various index.js test files |
Converted from callback-based HMR tests to async/await pattern with NEXT_HMR |
update.js and update.esm.js |
Removed legacy update helper modules |
Snapshot files | Updated to reflect new test execution patterns |
loader.ts and plugin.ts |
Updated HMR test infrastructure to support new API |
Various test configuration files | Added module.hot.accept calls where missing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📦 Binary Size-limit
🙈 Size remains the same at 47.67MB |
CodSpeed Performance ReportMerging #11882 will not alter performanceComparing Summary
|
91e1dab
to
d7d1a18
Compare
Summary
Related links
Checklist