Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

refactor dts tests to split into multiple test files

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 25, 2025 08:13
@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 2dab724
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/6925653eafb134000859d8a2
😎 Deploy Preview https://deploy-preview-1364--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot finished reviewing on behalf of Timeless0911 November 25, 2025 08:15
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 refactors the DTS (TypeScript Declaration) integration tests by splitting a large monolithic test file (~944 lines) into multiple smaller, feature-focused test files for better organization and maintainability.

Key Changes

  • Split tests/integration/dts/index.test.ts into 6 separate test files organized by DTS mode (bundle, bundle-false, build, composite, check, other-features)
  • Updated fixture paths in test files to be relative to their new locations using __dirname
  • Reorganized snapshot files to match the new test file structure
  • Moved the copy test fixture to other-features subdirectory and updated related paths

Reviewed changes

Copilot reviewed 12 out of 20 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/integration/dts/index.test.ts Deleted 944-line monolithic test file
tests/integration/dts/bundle/index.test.ts New test file for bundle mode tests (266 lines)
tests/integration/dts/bundle-false/index.test.ts New test file for bundle-false mode tests (240 lines)
tests/integration/dts/build/index.test.ts New test file for build mode tests (219 lines)
tests/integration/dts/composite/index.test.ts New test file for composite mode tests (194 lines)
tests/integration/dts/check/index.test.ts New test file for tsconfig validation tests (30 lines)
tests/integration/dts/other-features/index.test.ts New test file for output.copy feature test (20 lines)
tests/integration/dts/other-features/copy/* Moved copy test fixtures to other-features subdirectory
tests/integration/dts/*/snapshots/index.test.ts.snap Created/updated snapshot files for new test structure
tests/integration/dts-tsgo/*/index.test.ts Fixed fixture paths by removing redundant directory names
pnpm-lock.yaml Updated path reference for copy fixture
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@Timeless0911 Timeless0911 enabled auto-merge (squash) November 25, 2025 08:21
@Timeless0911 Timeless0911 merged commit 85d4b54 into main Nov 25, 2025
23 checks passed
@Timeless0911 Timeless0911 deleted the refactor-dts-test branch November 25, 2025 08:24
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.

3 participants