MCPcopy Create free account
hub / github.com/getagentseal/codeburn / writeRawCache

Function writeRawCache

tests/session-cache.test.ts:360–363  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

358
359describe('loadCache validation', () => {
360 async function writeRawCache(data: unknown): Promise<void> {
361 await mkdir(TMP_DIR, { recursive: true })
362 await writeFile(join(TMP_DIR, 'session-cache.json'), JSON.stringify(data))
363 }
364
365 it('rejects providers as array', async () => {
366 await writeRawCache({ version: CACHE_VERSION, providers: [] })

Callers 1

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected