Skip to content

test(e2e): add test case for using declaration syntax#5873

Merged
chenjiahan merged 2 commits intomainfrom
using_declaration_0818
Aug 18, 2025
Merged

test(e2e): add test case for using declaration syntax#5873
chenjiahan merged 2 commits intomainfrom
using_declaration_0818

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Add new test case to verify explicit resource management with using declaration.

Related Links

web-infra-dev/rspack#11395

Checklist

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

Copilot AI review requested due to automatic review settings August 18, 2025 09:02
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 18, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 6ad63e6
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a2ec6a183e0600084af8a6
😎 Deploy Preview https://deploy-preview-5873--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 (🔴 down 7 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.

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

Adds a new end-to-end test case to verify TypeScript's using declaration syntax for explicit resource management, while also cleaning up TypeScript configuration files by removing unused compiler options.

  • Adds test case for using and await using declarations including for-loop variants
  • Cleans up tsconfig.json files by removing unused JSX and path mapping options
  • Tests disposal mechanism by counting dispose calls on resources

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
e2e/cases/syntax/using-declaration/src/index.ts Implements test scenarios for using declarations with disposal tracking
e2e/cases/syntax/using-declaration/index.test.ts Test runner that validates dispose counter equals 4
e2e/cases/syntax/using-declaration/tsconfig.json TypeScript configuration for the new test case
e2e/cases/typescript/type-re-exports/tsconfig.json Removes unused JSX and path mapping options
e2e/cases/typescript/const-enum/tsconfig.json Removes unused JSX and path mapping options

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chenjiahan chenjiahan merged commit f4d54e3 into main Aug 18, 2025
11 checks passed
@chenjiahan chenjiahan deleted the using_declaration_0818 branch August 18, 2025 09:09
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