-
Notifications
You must be signed in to change notification settings - Fork 472
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add rust rebuild test function feature #3091
Conversation
I don't suggest add hmr test at rust side, hmr can't works without |
Maybe there is something wrong with the description of my proposal. I want to add the test method of rebuild to the rust layer, through the changed and removed files, to facilitate testing possible problems in the rebuild process |
IMO test at rust side enable better debug experience, so rebuild test at rust side is nice to have, you can checkout |
So it makes sense, right? So I'm going to follow up |
Thank you! |
Related issue (if exists)
Summary
馃 Generated by Copilot at 50a05bb
This pull request adds a new function
test_hmr_fixture
to therspack_testing
crate, which tests the hot module reloading (HMR) feature of therspack
tool. It also updates and adds some examples to demonstrate and compare the HMR feature with the normal build feature. The examples use hard-coded fixture paths and console log statements.Walkthrough
馃 Generated by Copilot at 50a05bb
test_hmr_fixture
to therspack_testing
crate that tests the hot module replacement (HMR) feature of the compiler for a given fixture (link, link, link)test_hmr_fixture
function in thetest-cli.rs
andtest-hmr-cli.rs
files (link, link, link)test.config.json
file to thesimple
example to provide some configuration options for the testing framework or the compiler (link)index.js
file in thesimple
example to demonstrate or debug the HMR feature or the module caching behavior (link, link)simple
example in themain.js
file (link)