test(persistence): assert sidecar durability barrier

This commit is contained in:
Neil
2026-08-23 19:25:23 -07:00
parent 82e4058592
commit ab1dbaa8bd
@@ -348,7 +348,11 @@ describe('Store', () => {
},
terminalPtyIncarnationsByPaneKey: { [paneKey]: 'inc-stale' }
})
vi.spyOn(store, 'flushOrThrow').mockImplementationOnce(() => {
const storeInternals = store as unknown as {
workspaceSessionSidecars: { flushSync: (trigger?: string) => void }
}
const sidecarStore = storeInternals.workspaceSessionSidecars
vi.spyOn(sidecarStore, 'flushSync').mockImplementationOnce(() => {
throw new Error('disk full')
})