Skip to content

test(e2e): fix flaky cache directory tests#6736

Merged
chenjiahan merged 2 commits intomainfrom
cache_e2e_1209
Dec 9, 2025
Merged

test(e2e): fix flaky cache directory tests#6736
chenjiahan merged 2 commits intomainfrom
cache_e2e_1209

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Refactor tests to use separate paths for dev/build. Clean up test setup by removing directories in beforeAll hook.

Fix:

Screenshot 2025-12-09 at 13 20 16

Checklist

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

Copilot AI review requested due to automatic review settings December 9, 2025 05:27
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 9, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 87a3607
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6937b5576faec5000899019a
😎 Deploy Preview https://deploy-preview-6736--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: 73 (🔴 down 1 from production)
Accessibility: 100 (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
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 fixes flaky end-to-end tests for cache directory configuration by ensuring proper test isolation and cleanup.

  • Refactored tests to use separate cache paths for dev (./node_modules/.cache2/dev) and build (./node_modules/.cache2/build) modes to prevent interference
  • Added beforeAll hook to clean up the default cache directory before tests run
  • Simplified code by extracting the default cache directory path to a module-level constant

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

@chenjiahan chenjiahan merged commit 6943e9b into main Dec 9, 2025
11 checks passed
@chenjiahan chenjiahan deleted the cache_e2e_1209 branch December 9, 2025 05:46
@chenjiahan chenjiahan mentioned this pull request Dec 9, 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