Skip to content

test(e2e): simplify profile test cases by using helpers#5865

Merged
chenjiahan merged 1 commit intomainfrom
profile_e2e_0817
Aug 18, 2025
Merged

test(e2e): simplify profile test cases by using helpers#5865
chenjiahan merged 1 commit intomainfrom
profile_e2e_0817

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Replace manual child process handling with runCommand and runCli helpers in the profile related e2e cases.

Checklist

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

Copilot AI review requested due to automatic review settings August 17, 2025 13:01
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

Simplifies profile-related e2e test cases by replacing manual child process handling with helper utilities.

  • Refactors two rspack profile test cases to use runCommand and runCli helpers
  • Adds getLogs method to the runCommand helper function
  • Removes manual stdout data handling and process spawning in favor of the standardized helpers

Reviewed Changes

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

File Description
e2e/scripts/shared.ts Adds getLogs method to return accumulated logs from the command helper
e2e/cases/rspack-profile/index.test.ts Refactors profile tests to use helper functions instead of manual process management

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

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 17, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit bd52ef3
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a1d29975c8ef000872838f
😎 Deploy Preview https://deploy-preview-5865--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: 66 (🔴 down 10 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.

@chenjiahan chenjiahan merged commit 2868c7b into main Aug 18, 2025
12 checks passed
@chenjiahan chenjiahan deleted the profile_e2e_0817 branch August 18, 2025 01:21
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.

2 participants