Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

The debug mode tests seem to be unstable when run locally. This PR tries to improve their stability.

Checklist

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

Copilot AI review requested due to automatic review settings June 18, 2025 14:33
@netlify
Copy link

netlify bot commented Jun 18, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 92cb12d
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6852ce42ab6d2a0008989524
😎 Deploy Preview https://deploy-preview-5440--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (no change from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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 aims to improve the stability of debug mode tests by updating test implementations and renaming test titles for clarity. Key changes include the addition of an empty index file, renaming tests to emphasize "debug mode", and removing the usage of gotoPage and cleanDistPath options.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
e2e/cases/config/debug-mode/src/index.js Added an empty file (likely used as a placeholder or marker).
e2e/cases/config/debug-mode/index.test.ts Renamed tests and updated test logic by removing gotoPage usage and the cleanDistPath option to improve stability.
Comments suppressed due to low confidence (2)

e2e/cases/config/debug-mode/index.test.ts:70

  • Removing the usage of 'gotoPage' and its corresponding HTTP status check lessens the verification of whether the dev server is serving pages correctly. If this removal is aimed solely at avoiding flakiness, consider adding a comment to explain the intent.
  expect(

e2e/cases/config/debug-mode/index.test.ts:28

  • The removal of the 'cleanDistPath' option may have implications on test isolation. If this change is intentional to improve stability, consider adding an inline comment to document the rationale.
        },

@chenjiahan chenjiahan merged commit 6213a91 into main Jun 19, 2025
12 checks passed
@chenjiahan chenjiahan deleted the debug_tests_0618 branch June 19, 2025 02:03
This was referenced Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant