Skip to content

Commit

Permalink
Remove itAsync part 1 (#12182)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller authored Dec 12, 2024
1 parent 0809b88 commit 68a7b4a
Show file tree
Hide file tree
Showing 22 changed files with 6,862 additions and 8,150 deletions.
475 changes: 207 additions & 268 deletions src/__tests__/ApolloClient.ts

Large diffs are not rendered by default.

4,017 changes: 1,854 additions & 2,163 deletions src/__tests__/client.ts

Large diffs are not rendered by default.

1,406 changes: 654 additions & 752 deletions src/__tests__/local-state/general.ts

Large diffs are not rendered by default.

1,450 changes: 647 additions & 803 deletions src/__tests__/local-state/resolvers.ts

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions src/cache/inmemory/__tests__/fragmentMatcher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import gql from "graphql-tag";

import { itAsync } from "../../../testing";
import { InMemoryCache } from "../inMemoryCache";
import { visit, FragmentDefinitionNode } from "graphql";
import { hasOwn } from "../helpers";
Expand Down Expand Up @@ -242,7 +241,7 @@ describe("policies.fragmentMatches", () => {
console.warn = warn;
});

itAsync("can infer fuzzy subtypes heuristically", (resolve, reject) => {
it("can infer fuzzy subtypes heuristically", async () => {
const cache = new InMemoryCache({
possibleTypes: {
A: ["B", "C"],
Expand Down Expand Up @@ -279,7 +278,7 @@ describe("policies.fragmentMatches", () => {
FragmentDefinition(frag) {
function check(typename: string, result: boolean) {
if (result !== cache.policies.fragmentMatches(frag, typename)) {
reject(
throw new Error(
`fragment ${frag.name.value} should${
result ? "" : " not"
} have matched typename ${typename}`
Expand Down Expand Up @@ -577,7 +576,5 @@ describe("policies.fragmentMatches", () => {
},
}).size
).toBe("ABCDEF".length);

resolve();
});
});
Loading

0 comments on commit 68a7b4a

Please sign in to comment.