-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
✅ test: add unit tests for multimodalContent #10689
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
base: next
Are you sure you want to change the base?
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a new Jest unit test suite for the multimodalContent utilities, focusing on serialization/deserialization behavior and edge cases for text and image content parts. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #10689 +/- ##
=======================================
Coverage 80.61% 80.61%
=======================================
Files 977 978 +1
Lines 66574 66587 +13
Branches 8769 8809 +40
=======================================
+ Hits 53667 53680 +13
Misses 12907 12907
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Summary
multimodalContentutility moduleChanges
Module Processed
packages/utils/src/multimodalContent.tsTest Coverage
serializePartsForStorage()- Serializes message content parts to JSON stringdeserializeParts()- Deserializes JSON string to message content partsKey Test Scenarios Covered:
Serialization:
Deserialization:
Round-trip Testing:
🤖 Generated with Claude Code
Summary by Sourcery
Tests: