File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { exec } from "child_process";
22import { promisify } from "util" ;
33import * as fs from "fs" ;
44import * as path from "path" ;
5- import { Config } from "./config" ;
5+ import type { Config } from "./config" ;
66
77const execAsync = promisify ( exec ) ;
88
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe("HistoryService", () => {
2525 // Clean up temp directory
2626 try {
2727 await fs . rm ( tempDir , { recursive : true , force : true } ) ;
28- } catch ( error ) {
28+ } catch {
2929 // Ignore cleanup errors
3030 }
3131 } ) ;
@@ -228,7 +228,11 @@ describe("HistoryService", () => {
228228 const workspaceDir = config . getSessionDir ( workspaceId ) ;
229229 const chatPath = path . join ( workspaceDir , "chat.jsonl" ) ;
230230 const content = await fs . readFile ( chatPath , "utf-8" ) ;
231- const persisted = JSON . parse ( content . trim ( ) ) ;
231+ const persisted = JSON . parse ( content . trim ( ) ) as {
232+ workspaceId : string ;
233+ id : string ;
234+ role : string ;
235+ } ;
232236
233237 expect ( persisted . workspaceId ) . toBe ( workspaceId ) ;
234238 } ) ;
You can’t perform that action at this time.
0 commit comments