test(web): provide workspace context config

This commit is contained in:
Turtle
2026-07-23 16:04:32 +08:00
parent 5cdb192e92
commit 7d751d3894

View File

@@ -105,7 +105,10 @@ describe('bootHost / startHost', () => {
})
it('uses the JSONL backend compressed default', async () => {
const handle: HostHandle = await bootHost({ persistenceRoot: mkdtempSync(join(tmpdir(), 'dsh-boot-zstd-')) })
const handle: HostHandle = await bootHost({
persistenceRoot: mkdtempSync(join(tmpdir(), 'dsh-boot-zstd-')),
workspaceContext: false,
})
const session = handle.ctx.sessions.create()
expect(handle.ctx.sessionPersistence.locate(session.header)?.path).toMatch(/\.jsonl\.zstd$/)
await handle.dispose()