Skip to content

Conversation

@catalinaperalta
Copy link
Member

@catalinaperalta catalinaperalta commented Nov 21, 2025

This PR incudes:

  • Updates to outdated test assets
  • Clean up repoRoot variable assignment
  • Simplify/improve some tests based on updated tsp-client behavior

Tracking issue to investigate the 3 tests that were skipped: #13033

@catalinaperalta catalinaperalta marked this pull request as ready for review November 21, 2025 19:23
Copilot AI review requested due to automatic review settings November 21, 2025 19:23
Copilot finished reviewing on behalf of catalinaperalta November 21, 2025 19: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 updates test assets and improves test code in the tsp-client tool. The main changes include updating TypeSpec and related package dependencies from version 0.38.x/0.67.x to 0.46.x/1.6.x, cleaning up redundant repoRoot variable assignments in tests, and combining/simplifying test cases. Three tests were skipped with a tracking issue created for investigation.

Key changes:

  • Dependency version updates across multiple test fixture files
  • Test cleanup improvements with afterEach hook
  • Test case consolidation (combining "Sync" and "Generate" tests)
  • Removal of redundant repoRoot variable assignments

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/tsp-client/test/utils/*.json Updated TypeSpec dependency versions in test fixture files
tools/tsp-client/test/commands.spec.ts Added afterEach cleanup, consolidated tests, removed redundant repoRoot assignments
tools/tsp-client/test/examples/specification/*/main.tsp Removed @useDependency decorators
tools/tsp-client/test/examples/specification/*/tspconfig.yaml Updated emitter configuration options
tools/tsp-client/test/examples/package.json Updated dependency versions and added missing packages
tools/tsp-client/test/examples/sdk/*/tsp-location.yaml Updated commit hash reference
Files not reviewed (2)
  • tools/tsp-client/test/utils/alternate-emitter-package-lock.json: Language not supported
  • tools/tsp-client/test/utils/emitter-package-lock.json: Language not supported

@catalinaperalta
Copy link
Member Author

/check-enforcer override

@catalinaperalta catalinaperalta enabled auto-merge (squash) November 21, 2025 21:29
@catalinaperalta catalinaperalta merged commit 81321f3 into main Nov 21, 2025
5 checks passed
@catalinaperalta catalinaperalta deleted the tsp-client/test-fix branch November 21, 2025 21:29
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.

4 participants