Skip to content

Commit 734c0c9

Browse files
committed
Remove unneeded .failing
1 parent 2bc7587 commit 734c0c9

1 file changed

Lines changed: 42 additions & 45 deletions

File tree

src/core/__tests__/client.query/customScalars.test.ts

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -397,57 +397,54 @@ test("parses network custom scalar fields with a network-only fetch policy", asy
397397
});
398398
});
399399

400-
test.failing(
401-
"parses custom scalar fields with a no-cache fetch policy",
402-
async () => {
403-
const query = gql`
404-
query Event {
405-
event {
406-
id
407-
startDate
408-
}
400+
test("parses custom scalar fields with a no-cache fetch policy", async () => {
401+
const query = gql`
402+
query Event {
403+
event {
404+
id
405+
startDate
409406
}
410-
`;
411-
const client = new ApolloClient({
412-
cache: new InMemoryCache({
413-
scalars: { Date: dateScalar },
414-
typePolicies: {
415-
Event: {
416-
fields: {
417-
startDate: { scalar: "Date" },
418-
},
407+
}
408+
`;
409+
const client = new ApolloClient({
410+
cache: new InMemoryCache({
411+
scalars: { Date: dateScalar },
412+
typePolicies: {
413+
Event: {
414+
fields: {
415+
startDate: { scalar: "Date" },
419416
},
420417
},
421-
}),
422-
link: new ApolloLink(() =>
423-
of({
424-
data: {
425-
event: {
426-
__typename: "Event",
427-
id: "1",
428-
startDate: "2026-01-01",
429-
},
418+
},
419+
}),
420+
link: new ApolloLink(() =>
421+
of({
422+
data: {
423+
event: {
424+
__typename: "Event",
425+
id: "1",
426+
startDate: "2026-01-01",
430427
},
431-
}).pipe(delay(20))
432-
),
433-
});
434-
435-
await expect(
436-
client.query({
437-
query,
438-
fetchPolicy: "no-cache",
439-
})
440-
).resolves.toStrictEqualTyped({
441-
data: {
442-
event: {
443-
__typename: "Event",
444-
id: "1",
445-
startDate: new Date(2026, 0, 1),
446428
},
429+
}).pipe(delay(20))
430+
),
431+
});
432+
433+
await expect(
434+
client.query({
435+
query,
436+
fetchPolicy: "no-cache",
437+
})
438+
).resolves.toStrictEqualTyped({
439+
data: {
440+
event: {
441+
__typename: "Event",
442+
id: "1",
443+
startDate: new Date(2026, 0, 1),
447444
},
448-
});
449-
}
450-
);
445+
},
446+
});
447+
});
451448

452449
test("preserves referential identity when fetching identical serialized scalar values", async () => {
453450
const query = gql`

0 commit comments

Comments
 (0)