Fix duplicate import error when same symbol is imported as both type and value#3291
Conversation
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 3c08e38 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…and value Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
|
@copilot This looks good. Can you remove the unnecessary comments you added? The code is self documenting. Can you add unit tests to the planner to verify the imports are correctly deduped and it still works with a single import? Since it's a private function you might need to create some boilerplate to test everything around it. We want to cover 5 scenarios:
|
…uplication Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Done in 3f23cef. Removed the comments and added unit tests covering all 5 scenarios:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3291 +/- ##
=======================================
Coverage 34.91% 34.91%
=======================================
Files 401 401
Lines 22237 22237
Branches 1429 1429
=======================================
Hits 7763 7763
Misses 14470 14470
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@hey-api/codegen-core
@hey-api/nuxt
@hey-api/openapi-ts
@hey-api/shared
@hey-api/types
@hey-api/vite-plugin
commit: |
Fixes #3288