Skip to content

Commit 95b9f17

Browse files
committed
fix(cli-smoke): add missing count() mock method (Issue #596)
The mock store in cli-smoke.mjs was missing the async count() method that the real store interface provides. This caused the assertion at line ~316 to fail with undefined !== 1 when recallResult.details.count was accessed. This is a pre-existing issue introduced by the lifecycle-aware memory decay commit, not related to PR #516.
1 parent 0988a46 commit 95b9f17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/cli-smoke.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ async function runCliSmoke() {
300300
},
301301
store: {
302302
async patchMetadata() {},
303+
async count() { return 1; },
303304
},
304305
scopeManager: {
305306
getAccessibleScopes() {

0 commit comments

Comments
 (0)