Skip to content
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

test: jsdom runner module wrapper #9609

Merged
merged 1 commit into from
Mar 10, 2025
Merged

Conversation

LingyuCoder
Copy link
Contributor

@LingyuCoder LingyuCoder commented Mar 10, 2025

Summary

The modules of jsdom runner is not wrapped which leads to variable undefined error in lazy compilation test cases.


This pull request introduces several changes to the JSDOMWebRunner class in the rspack-test-tools package, focusing on improving module content handling and caching. The key changes include adding a new method for retrieving module content, updating the module fetching logic, and implementing a require cache to optimize performance.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Sorry, something went wrong.

@LingyuCoder LingyuCoder requested a review from JSerFeng March 10, 2025 08:22
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Mar 10, 2025
Copy link

netlify bot commented Mar 10, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 2e88d0e
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/67cea1640c472a00084060f9

@LingyuCoder LingyuCoder changed the title ci: improve updating crates.io index speed test: jsdom runner module wrapper Mar 10, 2025
Copy link

codspeed-hq bot commented Mar 10, 2025

CodSpeed Performance Report

Merging #9609 will not alter performance

Comparing test/jsdom-module-scope (2e88d0e) with main (f28155c)

Summary

✅ 8 untouched benchmarks

@LingyuCoder LingyuCoder merged commit b1091a9 into main Mar 10, 2025
35 checks passed
@LingyuCoder LingyuCoder deleted the test/jsdom-module-scope branch March 10, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants