From dd053ba124cd257f84470b3677767d3ebd4bafbc Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Sat, 6 Dec 2025 01:05:27 +0000 Subject: [PATCH] test: Update session tests to include usage field Added usage field expectations to session creation tests to match the new session structure that includes cost tracking. Co-authored-by: nate --- extensions/cli/src/session.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/extensions/cli/src/session.test.ts b/extensions/cli/src/session.test.ts index 9ca3b4bd5..39d7e4db9 100644 --- a/extensions/cli/src/session.test.ts +++ b/extensions/cli/src/session.test.ts @@ -82,6 +82,15 @@ describe("SessionManager", () => { title: "Untitled Session", workspaceDirectory: process.cwd(), history: [], + usage: { + promptTokens: 0, + completionTokens: 0, + totalCost: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }, }); }); @@ -102,6 +111,15 @@ describe("SessionManager", () => { title: "Untitled Session", workspaceDirectory: process.cwd(), history: [], + usage: { + promptTokens: 0, + completionTokens: 0, + totalCost: 0, + promptTokensDetails: { + cachedTokens: 0, + cacheWriteTokens: 0, + }, + }, }); });