test: run webpack config test cases with rspack test tools#11645
Merged
LingyuCoder merged 1 commit intomainfrom Sep 15, 2025
Merged
test: run webpack config test cases with rspack test tools#11645LingyuCoder merged 1 commit intomainfrom
LingyuCoder merged 1 commit intomainfrom
Conversation
✅ Deploy Preview for rspack canceled.
|
Contributor
📦 Binary Size-limit
🙈 Size remains the same at 47.45MB |
CodSpeed Performance ReportMerging #11645 will not alter performanceComparing Summary
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates webpack configuration test cases to run with rspack test tools, ensuring compatibility between webpack and rspack testing infrastructure.
- Update module scope and execution hook signatures to include compiler options
- Add support for additional globals and statistics indices in test runners
- Extend helper functions and utilities to support broader test scenarios
Reviewed Changes
Copilot reviewed 31 out of 3906 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/rspack-test/configCases/async-module/environment-not-support-async-warning/test.filter.js | Update import path for supportsWebAssembly helper |
| tests/rspack-test/configCases/asset-modules/only-entry/test.js | Add console logging for debugging |
| tests/rspack-test/configCases/asset-modules/entry-with-runtimeChunk/test.js | Add console logging for debugging |
| tests/rspack-test/configCases/asset-emitted/normal/webpack.config.js | Update inline snapshot format |
| tests/rspack-test/snapshots/Config.test.js.snap | Add new test snapshots |
| packages/rspack-test-tools/src/type.ts | Update type signatures for module scope and execution hooks |
| packages/rspack-test-tools/src/runner/* | Update runners with expanded module scope signatures |
| packages/rspack-test-tools/src/processor/* | Update processors with new execution hook signatures |
| packages/rspack-test-tools/src/helper/legacy/* | Add various helper utilities |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
tests/rspack-test/configCases/asset-modules/entry-with-runtimeChunk/test.js
Outdated
Show resolved
Hide resolved
b55d743 to
96fad84
Compare
34ac4f0 to
44610b6
Compare
hardfist
approved these changes
Sep 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run webpack config test cases with rspack test tools
Related links
Checklist