MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / createTempDir

Function createTempDir

packages/node-runtime/src/ai/__tests__/chats.test.ts:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const sqliteNativeBinding = process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING
11
12function createTempDir(): string {
13 return mkdtempSync(join(tmpdir(), 'chatlab-ai-conv-'))
14}
15
16function createTestDatabase(filename: string): Database.Database {
17 return sqliteNativeBinding ? new Database(filename, { nativeBinding: sqliteNativeBinding }) : new Database(filename)

Callers 1

chats.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected