mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-26 01:39:51 +01:00
test(runner): narrow the swarm refusal frame's error before reading providerFailure
Fixes TS18046 in the CI test-program typecheck. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aeda4fb3ba
commit
2b07e5801d
1 file changed
+1
-1
@@ -2167,7 +2167,7 @@ describe("qualified ACPX runtime sidecar", () => {
|
||||
const refused = await sidecar.next(frame => frame.id === 2);
|
||||
expect(refused).toMatchObject({ ok: false, error: { code: "ANTIGRAVITY_SWARM_UNAVAILABLE", retryable: false,
|
||||
providerFailure: { provider: "antigravity", message: expect.stringMatching(/Gemini API key/) } } });
|
||||
expect(refused.error.providerFailure).not.toHaveProperty("providerCode");
|
||||
expect((refused.error as { providerFailure: unknown }).providerFailure).not.toHaveProperty("providerCode");
|
||||
expect(JSON.stringify(refused)).not.toContain("only for Cursor");
|
||||
|
||||
// Only the registered provider modes pass the parser; the refusal names its contract.
|
||||
|
||||
Reference in new issue
Block a user