@shopify/graphql-testing
Advanced tools
Comparing version 7.0.1 to 7.1.0
@@ -14,3 +14,4 @@ 'use strict'; | ||
cacheOptions = {}, | ||
links = [] | ||
links = [], | ||
defaultOptions = {} | ||
} = {}) { | ||
@@ -38,4 +39,6 @@ this.operations = new operations.Operations(); | ||
this.client = new client.ApolloClient({ | ||
connectToDevTools: false, | ||
link, | ||
cache | ||
cache, | ||
defaultOptions | ||
}); | ||
@@ -42,0 +45,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import type { InMemoryCacheConfig } from '@apollo/client'; | ||
import type { DefaultOptions, InMemoryCacheConfig } from '@apollo/client'; | ||
import { ApolloClient, ApolloLink } from '@apollo/client'; | ||
@@ -8,2 +8,3 @@ import { Operations } from './operations'; | ||
links?: ApolloLink[]; | ||
defaultOptions?: DefaultOptions; | ||
} | ||
@@ -22,3 +23,3 @@ interface ResolveAllFindOptions extends FindOptions { | ||
private readonly mockLink; | ||
constructor(mock?: GraphQLMock, { cacheOptions, links }?: Options); | ||
constructor(mock?: GraphQLMock, { cacheOptions, links, defaultOptions }?: Options); | ||
update(mock: GraphQLMock): void; | ||
@@ -25,0 +26,0 @@ resolveAll(options?: ResolveAllFindOptions): Promise<void>; |
{ | ||
"name": "@shopify/graphql-testing", | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"license": "MIT", | ||
@@ -34,3 +34,2 @@ "description": "Utilities to create mock GraphQL factories", | ||
"dependencies": { | ||
"@apollo/client": "^3.5.8", | ||
"graphql": ">=14.5.0 <16.0.0", | ||
@@ -42,2 +41,5 @@ "jest-matcher-utils": "^26.6.2" | ||
}, | ||
"peerDependencies": { | ||
"@apollo/client": ">=3.5.8 || <4.0.0" | ||
}, | ||
"files": [ | ||
@@ -44,0 +46,0 @@ "build/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61803
848
- Removed@apollo/client@^3.5.8