Skip to content

test(e2e): add more case for lazy compilation#4888

Merged
chenjiahan merged 2 commits intomainfrom
lazy_compilation_e2e_0327
Mar 27, 2025
Merged

test(e2e): add more case for lazy compilation#4888
chenjiahan merged 2 commits intomainfrom
lazy_compilation_e2e_0327

Conversation

@chenjiahan
Copy link
Member

Summary

Add more E2E case for lazy compilation.

Related Links

#4881

Checklist

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

@netlify
Copy link

netlify bot commented Mar 27, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 774e530
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67e4ca3539bdd10008efc898
😎 Deploy Preview https://deploy-preview-4888--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: 56 (🔴 down 21 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 site configuration.

@chenjiahan chenjiahan requested a review from Copilot March 27, 2025 03:25
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 new end-to-end test cases for lazy compilation, covering both dynamic imports and basic page rendering, and updates the configuration to enable lazy compilation in development mode.

  • Added an E2E test for dynamic import lazy compilation.
  • Updated the basic lazy compilation test to include log polling.
  • Added a new initial-chunk test and a corresponding configuration file.

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
e2e/cases/lazy-compilation/dynamic-import/index.test.ts New test to verify that dynamic imported modules are lazily compiled.
e2e/cases/lazy-compilation/dynamic-import/rsbuild.config.ts Config update to enable lazy compilation.
e2e/cases/lazy-compilation/dynamic-import/src/index.js Example entry module using dynamic import.
e2e/cases/lazy-compilation/basic/index.test.ts Updated test with log polling for lazy compilation of pages.
e2e/cases/lazy-compilation/dynamic-import/src/foo.js Added module for testing dynamic import.
e2e/cases/lazy-compilation/add-initial-chunk/index.test.ts Simplified test for validating new initial chunk creation.
Files not reviewed (1)
  • website/docs/en/config/dev/lazy-compilation.mdx: Language not supported

@chenjiahan chenjiahan merged commit 7ea23c2 into main Mar 27, 2025
11 checks passed
@chenjiahan chenjiahan deleted the lazy_compilation_e2e_0327 branch March 27, 2025 03:54
@chenjiahan chenjiahan mentioned this pull request Mar 28, 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