-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
test: add unit test for src/utils/fetch/fetchSSE.ts #5826
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
👍 @gru-agent[bot] Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5826 +/- ##
==========================================
+ Coverage 91.80% 97.90% +6.10%
==========================================
Files 666 14 -652
Lines 61010 3632 -57378
Branches 3048 205 -2843
==========================================
- Hits 56010 3556 -52454
+ Misses 5000 76 -4924
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@gru-agent rebase |
✅ Rebase TestGru PR Success
|
@gru-agent Rebase |
…tions in fetchSSE module.
🔄 Rebasing Testgru per ... |
…tion speed constants in fetchSSE.ts.
e431a15
to
346cfe3
Compare
Trigger Info
Summary
This PR introduces unit tests for the
createSmoothMessage
andcreateSmoothToolCalls
functions in thefetchSSE
utility. The tests ensure the correctness of the animation controllers for smooth text and tool call updates. Key changes include:Unit Tests for
createSmoothMessage
:Verifies basic functionality of the controller.
Tests handling of text animation, including starting, stopping, and processing multiple text chunks.
Ensures proper behavior when animations are interrupted.
Unit Tests for
createSmoothToolCalls
:Validates basic functionality of the tool calls controller.
Tests handling of tool call animations, including concurrent animations and stopping all animations.
Ensures proper processing of multiple tool calls.
Exports Update:
createSmoothMessage
,createSmoothToolCalls
,END_ANIMATION_SPEED
, andSTART_ANIMATION_SPEED
fromfetchSSE.ts
.These tests improve the reliability and maintainability of the animation controllers by ensuring their behavior is predictable and robust.
Tip
You can
@gru-agent
and leave your feedback. TestGru will make adjustments based on your inputTip
You can
@gru-agent rebase
to rebase the PR.Tip
You can
@gru-agent redo
to reset or rebase before redoing the PR.Tip
To modify the test code yourself, click here Edit Test Code