MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / cleanup

Function cleanup

packages/node-runtime/src/ai/__tests__/chats.test.ts:24–30  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

22}
23
24function cleanup(dir: string): void {
25 try {
26 rmSync(dir, { recursive: true, force: true, maxRetries: 5, retryDelay: 50 })
27 } catch {
28 // Windows can hold SQLite WAL handles briefly after close; temp cleanup is best-effort.
29 }
30}
31
32describe('AIChatManager legacy migration', () => {
33 it('creates ai_chat schema for fresh databases', () => {

Callers 1

chats.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected