-
-
Notifications
You must be signed in to change notification settings - Fork 754
test: enable passing normalCases tests and document failures #12409
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 systematically reviews and processes normalCases test filters, enabling 10 tests that now pass and documenting failures for 5 tests that still require fixes. The changes align with the goal of improving test coverage and transparency around test failures.
Key changes:
- Enabled 10 previously filtered tests by removing test.filter.js files
- Added failure documentation to 5 test.filter.js files that still fail with specific error details
- Fixed RegExp variable detection in eval_new_expr.rs to properly handle RegExp shadowing scenarios
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/rspack-test/normalCases/chunks/statical-dynamic-import/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/chunks/statical-dynamic-import-then/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/chunks/statical-dynamic-import-then-destructuring/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/chunks/statical-dynamic-import-destructuring/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/mjs/non-mjs-namespace-object-lazy/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/mjs/namespace-object-lazy/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/loaders/emit-file/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/optimize/side-effects-simple-unused/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/parsing/harmony-destructuring-assignment/test.filter.js | Removed filter for passing test |
| tests/rspack-test/normalCases/parsing/rspack-issue-4816/test.filter.js | Removed filter for passing test (enabled by RegExp fix) |
| tests/rspack-test/normalCases/resolving/issue-2986/test.filter.js | Added documentation for error message mismatch failure |
| tests/rspack-test/normalCases/parsing/precreated-ast/test.filter.js | Added documentation for loader AST processing failure |
| tests/rspack-test/normalCases/parsing/issue-758/test.filter.js | Added documentation for module warning failure |
| tests/rspack-test/normalCases/loaders/issue-4959/test.filter.js | Added documentation for loadModule API not implemented |
| tests/rspack-test/normalCases/errors/load-module-error/test.filter.js | Added documentation for loadModule API not implemented |
| crates/rspack_plugin_javascript/src/utils/eval/eval_new_expr.rs | Fixed RegExp variable detection to handle shadowing scenarios |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff AnalysisFound 5 project(s) in monorepo. 📁 react-10kPath:
📦 Download Diff Report: react-10k Bundle Diff 📁 react-1kPath:
📦 Download Diff Report: react-1k Bundle Diff 📁 react-5kPath:
📦 Download Diff Report: react-5k Bundle Diff 📁 romePath:
📦 Download Diff Report: rome Bundle Diff 📁 ui-componentsPath:
📦 Download Diff Report: ui-components Bundle Diff Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🎉 Size decreased by 640bytes from 47.72MB to 47.71MB (⬇️0.00%) |
CodSpeed Performance ReportMerging #12409 will not alter performanceComparing Summary
|
Summary
This PR systematically reviews and processes normalCases test filters without support-related checks:
Enabled Tests (10 test.filter.js removed)
Successfully removed filters for tests that now pass:
Documented Failures (5 test.filter.js updated)
Added error documentation for tests that still fail:
this.loadModuleAPI not implementedthis.loadModuleAPI not implementedAdditional Fix
Fixed RegExp variable detection in
eval_new_expr.rsto properly handle RegExp shadowing.Checklist