Skip to content

Commit 2ac5d5d

Browse files
committed
test(shared): update error emission for schema validation failure
1 parent c1445b7 commit 2ac5d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/test/fetch/fetch-schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe("custom fetch - schema validation", () => {
161161
).rejects.toBeInstanceOf(FetchError);
162162
});
163163

164-
it("should emit FetchSchemaValidationError when error response fails schema", async () => {
164+
it("should emit FetchError when error response fails schema", async () => {
165165
const ErrorSchema = z.object({ error: z.string() });
166166

167167
const result = await customFetch.safe(`${UCDJS_API_BASE_URL}/error-invalid`, {

0 commit comments

Comments
 (0)