Skip to content

Conversation

@LingyuCoder
Copy link
Contributor

Summary

  • run config and serial cases with jsdom runner
  • remove the code of fake document

Related links

Checklist

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

@LingyuCoder LingyuCoder requested review from 9aoy and Copilot and removed request for Copilot October 20, 2025 07:43
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Oct 20, 2025
@netlify
Copy link

netlify bot commented Oct 20, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit b7cede7
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f60d5b46ae7a00082f3a6e

Copilot AI review requested due to automatic review settings October 20, 2025 07:46
Copy link
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 migrates browser-oriented tests to run under a jsdom-driven WebRunner and removes the legacy FakeDocument path. It unifies the web runner, updates test utilities and configs, and adjusts tests to work with jsdom behavior.

  • Replace FakeDocument and separate jsdom runner with a unified jsdom-based WebRunner
  • Update TTestConfig and runner options (documentType removed; location introduced)
  • Modernize tests to use getLinkSheet and jsdom-compatible assertions; adjust/skip a few cases

Reviewed Changes

Copilot reviewed 96 out of 111 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/rspack-test-tools/src/runner/web/index.ts Introduces unified jsdom WebRunner; resource loading, URL mapping, and helper utilities (getLinkSheet)
packages/rspack-test-tools/src/type.ts Removes EDocumentType; TTestConfig now supports location
packages/rspack-test-tools/src/case/{runner,watch,hot,incremental}.ts Switch runners/processors to jsdom WebRunner and location-based config
packages/rspack-test-tools/src/case/config.ts findBundle returns CSS path relative to output for jsdom linking
tests/rspack-test/configCases/**/* Update tests for jsdom semantics (computed styles, link sheet reading); add a filter for a problematic case

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

📦 Binary Size-limit

Comparing b7cede7 to ci: fix lazy-compilation/persistent-cache ci failed (#11926) by jinrui

🙈 Size remains the same at 47.73MB

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 20, 2025

CodSpeed Performance Report

Merging #11924 will not alter performance

Comparing test/jsdom-runner-2 (b7cede7) with main (1d075d7)

Summary

✅ 17 untouched

@LingyuCoder LingyuCoder merged commit cf64d74 into main Oct 20, 2025
48 checks passed
@LingyuCoder LingyuCoder deleted the test/jsdom-runner-2 branch October 20, 2025 11:08
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