Skip to content

test(e2e): enable reloading env files case#5292

Merged
chenjiahan merged 3 commits intomainfrom
env_e2e_0521
May 22, 2025
Merged

test(e2e): enable reloading env files case#5292
chenjiahan merged 3 commits intomainfrom
env_e2e_0521

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

This pull request enables the reload-env E2E test and removes the previous test.skip directive.

Checklist

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

Copilot AI review requested due to automatic review settings May 21, 2025 13:34
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit b723f61
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/682de528ec7be1000850a09f
😎 Deploy Preview https://deploy-preview-5292--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: 72 (🟢 up 27 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (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
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 the reload-env end-to-end test by removing the test.skip directive and replacing it with a rspackOnlyTest wrapper, ensuring the test runs only under the appropriate configuration.

  • Removed test.skip and integrated rspackOnlyTest for selective test execution
  • Updated the process environment for the dev server by explicitly setting NODE_ENV to 'development'
Comments suppressed due to low confidence (1)

e2e/cases/cli/reload-env/index.test.ts:51

  • [nitpick] Using devProcess.kill() may abruptly terminate the process; consider a more graceful shutdown approach (for example, sending SIGTERM) to allow for proper cleanup.
devProcess.kill();

Comment thread e2e/cases/cli/reload-env/index.test.ts
@chenjiahan chenjiahan merged commit a6f900c into main May 22, 2025
11 checks passed
@chenjiahan chenjiahan deleted the env_e2e_0521 branch May 22, 2025 00:31
@chenjiahan chenjiahan mentioned this pull request May 27, 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.

2 participants