-
Notifications
You must be signed in to change notification settings - Fork 221
[tsp-client] test fixes #13027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tsp-client] test fixes #13027
Conversation
There was a problem hiding this 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
afterEachhook - Test case consolidation (combining "Sync" and "Generate" tests)
- Removal of redundant
repoRootvariable 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
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
/check-enforcer override |
This PR incudes:
Tracking issue to investigate the 3 tests that were skipped: #13033