test: cover curated qa missing-key reply classification

This commit is contained in:
Shakker
2026-04-08 21:16:39 +01:00
committed by Shakker
parent c63d25bd9b
commit d66e2d5b33

View File

@@ -23,4 +23,12 @@ describe("extractQaFailureReplyText", () => {
),
).toContain('No API key found for provider "openai".');
});
it("classifies curated missing-key guidance as a failure", () => {
expect(
extractQaFailureReplyText(
"⚠️ Missing API key for OpenAI on the gateway. Use `openai-codex/gpt-5.4` for OAuth, or set `OPENAI_API_KEY`, then try again.",
),
).toContain("Missing API key for OpenAI on the gateway.");
});
});