Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Added a test case to check that no deprecation messages appear in the logs during both dev and build modes.

Checklist

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

Copilot AI review requested due to automatic review settings December 31, 2025 09:04
@netlify
Copy link

netlify bot commented Dec 31, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit f90a667
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6954ea759a838000087690d6
😎 Deploy Preview https://deploy-preview-6873--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: 68 (no change 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
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 adds end-to-end tests to verify that no deprecation warnings are printed during the build process in both development and production modes.

Key Changes:

  • Adds regex pattern to detect deprecation-related log messages
  • Implements tests for both dev and build modes to ensure clean logs

Reviewed changes

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

File Description
e2e/cases/diagnostic/no-deprecation-logs/index.test.ts Adds two test cases that verify no deprecation logs appear in dev and build modes
e2e/cases/diagnostic/no-deprecation-logs/src/index.js Empty source file for the test case

After thoroughly reviewing this pull request, I found no issues with the implementation. The test follows established patterns in the codebase:

  1. ✅ The regex pattern /deprecated|deprecation/i is appropriate for catching deprecation messages
  2. ✅ The use of expectBuildEnd() followed by expectNoLog() matches the pattern used in similar tests (e.g., lazy-compilation/basic/index.test.ts)
  3. ✅ The test structure with separate cases for dev and build modes is consistent with other diagnostic tests (e.g., build-time/index.test.ts)
  4. ✅ The API usage is correct - expectNoLog is synchronous and doesn't require await
  5. ✅ The test names are clear and descriptive

The implementation is clean, follows project conventions, and should effectively catch any deprecation warnings that might appear in the build logs.


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

@chenjiahan chenjiahan merged commit e89a815 into main Jan 1, 2026
10 checks passed
@chenjiahan chenjiahan deleted the no_deprecation_1231 branch January 1, 2026 01:48
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