Skip to content

test(e2e): proxy SRI plugin warning log #5403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2025
Merged

test(e2e): proxy SRI plugin warning log #5403

merged 1 commit into from
Jun 12, 2025

Conversation

chenjiahan
Copy link
Member

Summary

Proxy SRI plugin warning log to reduce distracting information.

Screenshot 2025-06-12 at 15 11 28

Checklist

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

@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 08:00
Copy link
Contributor

@Copilot 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 updates an end-to-end test for the dev build to proxy console logs and verify that distracting SRI plugin warning logs are properly captured.

  • Added import and usage of proxyConsole to capture logs.
  • Asserted that the warning message is present in the captured logs.
  • Restored the console after the test completes.

),
).toBe(true);

restore();
Copy link
Preview

Copilot AI Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider wrapping the test assertions and restore() in a try...finally block to ensure that restore() is always called, even if an assertion fails.

Copilot uses AI. Check for mistakes.

Copy link

netlify bot commented Jun 12, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 25e8019
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/684a89378a7fc80008893ca0
😎 Deploy Preview https://deploy-preview-5403--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: 75 (🔴 down 3 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 e759094 into main Jun 12, 2025
11 of 12 checks passed
@chenjiahan chenjiahan deleted the sri_warning_0612 branch June 12, 2025 08:13
@chenjiahan chenjiahan mentioned this pull request Jun 26, 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