11// Jest Snapshot v1, https://goo.gl/fbAQLP
22
33exports [` urql graphcache Should correctly name GraphCacheResolvers & GraphCacheOptimisticUpdaters with nonstandard mutationType names 1` ] = `
4- "import { offlineExchange } from '@urql/exchange-graphcache';
4+ "import { cacheExchange } from '@urql/exchange-graphcache';
55import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
66
77export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
@@ -40,7 +40,7 @@ export type GraphCacheUpdaters = {
4040 },
4141} ;
4242
43- export type GraphCacheConfig = Parameters<typeof offlineExchange >[0] & {
43+ export type GraphCacheConfig = Parameters<typeof cacheExchange >[0] & {
4444 updates ?: GraphCacheUpdaters ,
4545 keys ?: GraphCacheKeysConfig ,
4646 optimistic ?: GraphCacheOptimisticUpdaters ,
@@ -49,7 +49,7 @@ export type GraphCacheConfig = Parameters<typeof offlineExchange>[0] & {
4949`;
5050
5151exports[`urql graphcache Should correctly output GraphCacheOptimisticUpdaters when there are no mutations 1`] = `
52- "import { offlineExchange } from '@urql/exchange-graphcache';
52+ "import { cacheExchange } from '@urql/exchange-graphcache';
5353import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
5454
5555export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
@@ -84,7 +84,7 @@ export type GraphCacheUpdaters = {
8484 },
8585} ;
8686
87- export type GraphCacheConfig = Parameters<typeof offlineExchange >[0] & {
87+ export type GraphCacheConfig = Parameters<typeof cacheExchange >[0] & {
8888 updates ?: GraphCacheUpdaters ,
8989 keys ?: GraphCacheKeysConfig ,
9090 optimistic ?: GraphCacheOptimisticUpdaters ,
@@ -93,7 +93,7 @@ export type GraphCacheConfig = Parameters<typeof offlineExchange>[0] & {
9393`;
9494
9595exports[`urql graphcache Should output the cache-generic correctly (with interfaces) 1`] = `
96- "import { offlineExchange } from '@urql/exchange-graphcache';
96+ "import { cacheExchange } from '@urql/exchange-graphcache';
9797import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
9898
9999export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
@@ -156,7 +156,7 @@ export type GraphCacheUpdaters = {
156156 },
157157} ;
158158
159- export type GraphCacheConfig = Parameters<typeof offlineExchange >[0] & {
159+ export type GraphCacheConfig = Parameters<typeof cacheExchange >[0] & {
160160 updates ?: GraphCacheUpdaters ,
161161 keys ?: GraphCacheKeysConfig ,
162162 optimistic ?: GraphCacheOptimisticUpdaters ,
@@ -165,7 +165,7 @@ export type GraphCacheConfig = Parameters<typeof offlineExchange>[0] & {
165165`;
166166
167167exports[`urql graphcache Should output the cache-generic correctly (with typesPrefix and typesSuffix) 1`] = `
168- "import { offlineExchange } from '@urql/exchange-graphcache';
168+ "import { cacheExchange } from '@urql/exchange-graphcache';
169169import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
170170
171171export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
@@ -227,7 +227,7 @@ export type GraphCacheUpdaters = {
227227 },
228228} ;
229229
230- export type GraphCacheConfig = Parameters<typeof offlineExchange >[0] & {
230+ export type GraphCacheConfig = Parameters<typeof cacheExchange >[0] & {
231231 updates ?: GraphCacheUpdaters ,
232232 keys ?: GraphCacheKeysConfig ,
233233 optimistic ?: GraphCacheOptimisticUpdaters ,
@@ -236,7 +236,7 @@ export type GraphCacheConfig = Parameters<typeof offlineExchange>[0] & {
236236`;
237237
238238exports[`urql graphcache Should output the cache-generic correctly (with unions) 1`] = `
239- "import { offlineExchange } from '@urql/exchange-graphcache';
239+ "import { cacheExchange } from '@urql/exchange-graphcache';
240240import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
241241
242242export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
@@ -286,7 +286,7 @@ export type GraphCacheUpdaters = {
286286 },
287287} ;
288288
289- export type GraphCacheConfig = Parameters<typeof offlineExchange >[0] & {
289+ export type GraphCacheConfig = Parameters<typeof cacheExchange >[0] & {
290290 updates ?: GraphCacheUpdaters ,
291291 keys ?: GraphCacheKeysConfig ,
292292 optimistic ?: GraphCacheOptimisticUpdaters ,
@@ -295,7 +295,7 @@ export type GraphCacheConfig = Parameters<typeof offlineExchange>[0] & {
295295`;
296296
297297exports[`urql graphcache Should output the cache-generic correctly 1`] = `
298- "import { offlineExchange } from '@urql/exchange-graphcache';
298+ "import { cacheExchange } from '@urql/exchange-graphcache';
299299import { Resolver as GraphCacheResolver , UpdateResolver as GraphCacheUpdateResolver , OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache';
300300
301301export type WithTypename<T extends { __typename ?: any } > = Partial<T > & { __typename : NonNullable < T [' __typename' ]> } ;
@@ -357,7 +357,7 @@ export type GraphCacheUpdaters = {
357357 },
358358} ;
359359
360- export type GraphCacheConfig = Parameters<typeof offlineExchange >[0] & {
360+ export type GraphCacheConfig = Parameters<typeof cacheExchange >[0] & {
361361 updates ?: GraphCacheUpdaters ,
362362 keys ?: GraphCacheKeysConfig ,
363363 optimistic ?: GraphCacheOptimisticUpdaters ,
0 commit comments