-
-
Notifications
You must be signed in to change notification settings - Fork 724
test: align more test cases with webpack #11834
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 aligns more test cases with webpack by adding comprehensive test coverage for compiler functionality, watch mode, and plugins, and enhances the test infrastructure to support both development and production modes.
Key Changes:
- Adds multiple new compiler test cases covering watch events, file change detection, and banner plugin functionality
- Introduces development and production mode test runners for better webpack compatibility
- Fixes quote escaping in DefinePlugin configuration to match webpack behavior
Reviewed Changes
Copilot reviewed 14 out of 24 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
tests/rspack-test/normalCases/parsing/issue-7519/test.config.js | Fixed DefinePlugin quote escaping to use proper string format |
tests/rspack-test/multiCompilerCases/watch-events.js | Added test for watch-close event in multi-compiler mode |
tests/rspack-test/compilerCases/watch.js | Added comprehensive watch mode tests for single compilation and invalidation |
tests/rspack-test/compilerCases/watch-events.js | Added watch-close event test for single compiler |
tests/rspack-test/compilerCases/watch-detection.js | Added file change detection tests with various timeout scenarios |
tests/rspack-test/compilerCases/watch-close.js | Added test for multiple watcher close callback handling |
tests/rspack-test/compilerCases/changes-and-removals.js | Added tests for tracking file modifications and removals |
tests/rspack-test/compilerCases/banner-plugin.js | Added BannerPlugin tests for asset caching and footer placement |
tests/rspack-test/Normal-prod.test.js | Added production mode test runner with exclusions |
tests/rspack-test/Normal-dev.test.js | Added development mode test runner with exclusions |
packages/rspack-test-tools/src/helper/directory.ts | Fixed path handling for cross-platform exclude pattern matching |
packages/rspack-test-tools/src/case/normal.ts | Enhanced test infrastructure to support dev/prod mode creation |
packages/rspack-test-tools/src/case/index.ts | Exported new dev/prod normal case creators |
packages/rspack-test-tools/etc/test-tools.api.md | Updated API documentation for new case creators |
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.89MB |
CodSpeed Performance ReportMerging #11834 will not alter performanceComparing Summary
|
Summary
development
andproduction
mode of normal test cases just like webpack.Related links
Checklist