Skip to content

Commit

Permalink
format again after updating prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Dec 4, 2023
1 parent 188dd0a commit 4283908
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions src/testing/matchers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,30 @@ interface ApolloCustomMatchers<R = void, T = {}> {
/**
* Used to determine if the Suspense cache has a cache entry.
*/
toHaveSuspenseCacheEntryUsing: T extends ApolloClient<any>
? (
query: DocumentNode,
options?: {
variables?: OperationVariables;
queryKey?: string | number | any[];
}
) => R
: { error: "matcher needs to be called on an ApolloClient instance" };
toHaveSuspenseCacheEntryUsing: T extends ApolloClient<any> ?
(
query: DocumentNode,
options?: {
variables?: OperationVariables;
queryKey?: string | number | any[];
}
) => R
: { error: "matcher needs to be called on an ApolloClient instance" };

toRerender: T extends
| Profiler<any, any>
| ProfiledComponent<any, any>
| ProfiledHook<any, any>
? (options?: NextRenderOptions) => Promise<R>
: { error: "matcher needs to be called on a ProfiledComponent instance" };
toRerender: T extends (
Profiler<any, any> | ProfiledComponent<any, any> | ProfiledHook<any, any>
) ?
(options?: NextRenderOptions) => Promise<R>
: { error: "matcher needs to be called on a ProfiledComponent instance" };

toRenderExactlyTimes: T extends
| Profiler<any, any>
| ProfiledComponent<any, any>
| ProfiledHook<any, any>
? (count: number, options?: NextRenderOptions) => Promise<R>
: { error: "matcher needs to be called on a ProfiledComponent instance" };
toRenderExactlyTimes: T extends (
Profiler<any, any> | ProfiledComponent<any, any> | ProfiledHook<any, any>
) ?
(count: number, options?: NextRenderOptions) => Promise<R>
: { error: "matcher needs to be called on a ProfiledComponent instance" };

toBeGarbageCollected: T extends WeakRef<any>
? () => Promise<R>
: { error: "matcher needs to be called on a WeakRef instance" };
toBeGarbageCollected: T extends WeakRef<any> ? () => Promise<R>
: { error: "matcher needs to be called on a WeakRef instance" };
}

declare global {
Expand Down

0 comments on commit 4283908

Please sign in to comment.