diff --git a/extensions/inworld/tts.test.ts b/extensions/inworld/tts.test.ts index 33f57b6ac99..71e922bd4aa 100644 --- a/extensions/inworld/tts.test.ts +++ b/extensions/inworld/tts.test.ts @@ -335,7 +335,9 @@ describe("inworldTTS", () => { it("releases the guarded dispatcher after failure", async () => { const { release } = queueGuardedResponse(new Response("fail", { status: 500 })); - await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow(); + await expect(inworldTTS({ text: "test", apiKey: "test-key" })).rejects.toThrow( + "Inworld TTS API error (500): fail", + ); expect(release).toHaveBeenCalledTimes(1); }); });