( sessionDir: string, state: Record<string, unknown>, )
| 31 | } |
| 32 | |
| 33 | async function writeSessionState( |
| 34 | sessionDir: string, |
| 35 | state: Record<string, unknown>, |
| 36 | ): Promise<string> { |
| 37 | const statePath = join(sessionDir, 'state.json'); |
| 38 | await writeFile(statePath, `${JSON.stringify(state, null, 2)}\n`, 'utf-8'); |
| 39 | return statePath; |
| 40 | } |
| 41 | |
| 42 | describe('SessionStore.list', () => { |
| 43 | it('returns an empty array when the workDir bucket does not exist', async () => { |
no test coverage detected