✅ test: add unit tests for LocalTaskScheduler#13398
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@nekomeowww - This is a backend service test PR for |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## canary #13398 +/- ##
========================================
Coverage 66.88% 66.89%
========================================
Files 1905 1906 +1
Lines 154323 154360 +37
Branches 18472 17781 -691
========================================
+ Hits 103222 103259 +37
Misses 50981 50981
Partials 120 120
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
❤️ Great PR @lobehubbot ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
LocalTaskSchedulerinsrc/server/services/taskScheduler/impls/Changes
Module Processed
src/server/services/taskScheduler/impls/local.tsTest Coverage
scheduleNextTopic,cancelScheduled,setExecutionCallbackvi.useFakeTimers()to controlsetTimeoutbehavior; tests happy paths, zero/missing delay, callback errors, multiple concurrent schedules, cancellation, and no-op cancel on unknown IDs🤖 Generated with Claude Code