We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656d06e commit ff50a03Copy full SHA for ff50a03
src/core/definer.test.ts
@@ -246,9 +246,7 @@ describe("defineRoute", () => {
246
});
247
248
it("should use custom error handler correctly for an expected error", async () => {
249
- mockRequest.json.mockImplementation(() => {
250
- throw new SyntaxError("Unexpected end of JSON input");
251
- });
+ mockRequest.json.mockRejectedValue(new SyntaxError("Unexpected end of JSON input"));
252
253
const route = defineRoute({
254
operationId: "postExample",
0 commit comments