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

Function makeTempDir

apps/cli/src/sync/routes.test.ts:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import { registerAutomationRoutes } from './routes'
9
10function makeTempDir(): string {
11 const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir()
12 return fs.mkdtempSync(path.join(baseDir, 'chatlab-sync-routes-'))
13}
14
15test('DELETE import session deletes imported local session when deleteData=true', async () => {
16 const settingsDir = makeTempDir()

Callers 1

routes.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected