Import packages/plugin/tests/acp-hermes-process.test.ts

This commit is contained in:
QQ 2026-11-17 08:49:33 +08:00
parent 7407209cc4
commit 460c719816
1 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,9 @@ describe('HermesAcpClient', () => {
queueMicrotask(() => child.emit('error', new Error('spawn hermes ENOENT')))
return child
})
await expect(client.start()).rejects.toMatchObject({ code: 'CURSOR_BINARY_UNAVAILABLE' })
// Hermes reuses the Cursor stdio client, but its failures must not be
// reported as Cursor ones: a disabled Cursor backend stays silent.
await expect(client.start()).rejects.toMatchObject({ code: 'HERMES_BINARY_UNAVAILABLE' })
expect(client.isReady()).toBe(false)
})
})