test(daemon): expand src/core unit coverage - #108
Merged
Conversation
…nd config Improve coverage across core modules by extending existing test files instead of adding duplicates. CoreState, engines registry/discovery, streamChat paths, config helpers, and MemorySecretStore are now covered.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #108 +/- ##
==========================================
+ Coverage 60.12% 63.70% +3.57%
==========================================
Files 37 37
Lines 4973 4973
Branches 1568 1568
==========================================
+ Hits 2990 3168 +178
+ Misses 1462 1262 -200
- Partials 521 543 +22
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
sathyapramod
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CoreStateunit tests (builder API, credentials, list/chat/health paths) inpackages/daemon/src/core/state.test.tsengines.tscoverage for registry accessors,fetchModelsprovider paths, andstreamChaterror/stream mappingMemorySecretStoretests in existing core test filesCoverage impact (
src/core):state.ts: 14% → 80%engines.ts: 42% → 71%config.ts: 72% → 94%Commits
test(daemon): expand src/core unit coverage for CoreState, engines, and config— adds/extends core unit tests without new duplicate test filesTest plan
npx vitest run src/core— 307 passednpm run lint -w packages/daemonnpm test(full workspace)npm run ci:build