Skip to content

Commit de1eec2

Browse files
committed
test(node): use expectErrorResponse helper so json() stays typed
1 parent ade94ed commit de1eec2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/middleware/node/test/streamableHttp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2666,7 +2666,7 @@ describe('Zod v4', () => {
26662666
// reported as -32603, not as a parse error.
26672667
const initResponse = await sendPostRequest(tempUrl, TEST_MESSAGES.initialize);
26682668
expect(initResponse.status).toBe(500);
2669-
expect((await initResponse.json()).error.code).toBe(-32_603);
2669+
expectErrorResponse(await initResponse.json(), -32_603, /Internal error/);
26702670

26712671
// Clean up
26722672
consoleErrorSpy.mockRestore();

0 commit comments

Comments
 (0)