Skip to content

test: enable more watch cases#12106

Merged
LingyuCoder merged 1 commit intomainfrom
test/enable-more-cases-2
Nov 6, 2025
Merged

test: enable more watch cases#12106
LingyuCoder merged 1 commit intomainfrom
test/enable-more-cases-2

Conversation

@LingyuCoder
Copy link
Copy Markdown
Contributor

Summary

Enable more test cases and remove some duplicated cases.

Related links

Checklist

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

Copilot AI review requested due to automatic review settings November 6, 2025 08:31
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 6, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit c628c4c
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/690c5cf7fb698e000805141f

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 6, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 enables previously skipped tests by fixing underlying issues related to test framework behavior and CSS handling. The main changes involve removing test filter files that were blocking test execution and adding missing configuration/test files.

  • Removed filter files that were skipping tests due to resolved issues (global variable access, timeouts, and CSS error handling)
  • Added configuration and test infrastructure for CSS dynamic loading tests
  • Cleaned up extensive CSS test files that were likely redundant or moved to a different test structure

Reviewed Changes

Copilot reviewed 75 out of 143 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/rspack-test/watchCases/runtime-requirements/entry-runtime-requirements/test.filter.js Removed test filter - issue with global variable access is fixed
tests/rspack-test/watchCases/runtime-requirements/entry-runtime-requirements/rspack.config.js Added config to enable global variable with node.global: true
tests/rspack-test/watchCases/runtime-requirements/entry-runtime-requirements/0/index.js Changed from temp to global variable reference
tests/rspack-test/watchCases/resolve/in-loader/test.filter.js Enabled test by changing from error message to true
tests/rspack-test/watchCases/resolve/in-loader/0/loader.js Added dependency tracking and commented duplicate code
tests/rspack-test/watchCases/cache/add-defines/test.filter.js Changed from "FIXME" to "TODO"
tests/rspack-test/watchCases/cache/add-defines/rspack.config.js Simplified cache configuration
tests/rspack-test/statsOutputCases/track-returned/test.filter.js Changed from "FIXME" to "TODO"
tests/rspack-test/serialCases/css/url/* Removed extensive CSS URL test files
tests/rspack-test/serialCases/css/import/* Removed extensive CSS import test files
tests/rspack-test/configCases/css/basic-dynamic-only/* Added new test case for dynamic CSS loading
Comments suppressed due to low confidence (1)

tests/rspack-test/configCases/css/basic-dynamic-only/style.css:1

  • The URL path references 'configCases/css/import/external.css', but the external.css file exists and the configCases directory structure exists. However, the URL scheme 'https://test.cases/root/' appears to be a test-specific mock URL. Verify that this mock URL is properly configured in the test infrastructure to resolve correctly, as this could cause test failures if the path resolution is not set up.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 6, 2025

📦 Binary Size-limit

Comparing c628c4c to chore(deps): update rust crate swc_core to 46.0.3 (#12085) by renovate[bot]

🙈 Size remains the same at 47.89MB

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Nov 6, 2025

CodSpeed Performance Report

Merging #12106 will not alter performance

Comparing test/enable-more-cases-2 (c628c4c) with main (3bcef0f)

Summary

✅ 17 untouched

@LingyuCoder LingyuCoder requested a review from 9aoy November 6, 2025 09:02
@LingyuCoder LingyuCoder enabled auto-merge (squash) November 6, 2025 09:03
@LingyuCoder LingyuCoder merged commit daca78b into main Nov 6, 2025
53 checks passed
@LingyuCoder LingyuCoder deleted the test/enable-more-cases-2 branch November 6, 2025 09:09
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.

3 participants