From 24ca2f66c8f6ac3e26be468dad79b5dc80050134 Mon Sep 17 00:00:00 2001 From: Jonas Jongejan Date: Sat, 7 Oct 2023 16:25:52 -0400 Subject: [PATCH] Update test --- .../urql-graphcache/tests/__snapshots__/urql.spec.ts.snap | 4 +--- .../plugins/typescript/urql-graphcache/tests/urql.spec.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap b/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap index d5db0c0fa..64f258ef0 100644 --- a/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap +++ b/packages/plugins/typescript/urql-graphcache/tests/__snapshots__/urql.spec.ts.snap @@ -1,9 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`urql graphcache Should correctly name GraphCacheResolvers & GraphCacheOptimisticUpdaters with nonstandard mutationType names 1`] = ` -"import { offlineExchange } from '@urql/exchange-graphcache'; -import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; - +import { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver, offlineExchange } from '@urql/exchange-graphcache'; export type WithTypename = Partial & { __typename: NonNullable }; export type GraphCacheKeysConfig = { diff --git a/packages/plugins/typescript/urql-graphcache/tests/urql.spec.ts b/packages/plugins/typescript/urql-graphcache/tests/urql.spec.ts index 16632258b..5886391ac 100644 --- a/packages/plugins/typescript/urql-graphcache/tests/urql.spec.ts +++ b/packages/plugins/typescript/urql-graphcache/tests/urql.spec.ts @@ -166,8 +166,7 @@ describe('urql graphcache', () => { const result = mergeOutputs([await plugin(schema, [], { useTypeImports: true })]); expect(result).toBeSimilarStringTo(`\ -import { offlineExchange } from '@urql/exchange-graphcache'; -import type { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver } from '@urql/exchange-graphcache'; +import type { Resolver as GraphCacheResolver, UpdateResolver as GraphCacheUpdateResolver, OptimisticMutationResolver as GraphCacheOptimisticMutationResolver, offlineExchange } from '@urql/exchange-graphcache'; `); });