@shopify/graphql-testing
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -9,3 +9,3 @@ import { ApolloLink, Operation, Observable, FetchResult, NextLink } from 'apollo-link'; | ||
export declare function executeOnce(link: ApolloLink, query: DocumentNode): Promise<ExecuteOnceOutcome>; | ||
declare type BeforeResult = ((operation: Operation) => void); | ||
declare type BeforeResult = (operation: Operation) => void; | ||
export declare class SimpleLink extends ApolloLink { | ||
@@ -12,0 +12,0 @@ private result; |
{ | ||
"name": "@shopify/graphql-testing", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "description": "Utilities to create mock graphql factory.", | ||
"devDependencies": { | ||
"@shopify/useful-types": "^2.0.1", | ||
"@shopify/useful-types": "^2.0.2", | ||
"@types/graphql": "^14.0.0", | ||
@@ -37,0 +37,0 @@ "graphql-typed": "^0.4.0" |
@@ -81,12 +81,12 @@ # `@shopify/graphql-testing` | ||
// the very first operation, or undefined if no operations have been performed | ||
graphQL.first(); | ||
graphQL.operations.first(); | ||
// the second last operation run with petQuery | ||
graphQL.nth(-2, {query: petQuery}); | ||
graphQL.operations.nth(-2, {query: petQuery}); | ||
// the last operation of any kind | ||
graphQL.last(); | ||
graphQL.operations.last(); | ||
// all mutations with this mutation | ||
graphQL.all({mutation: addPetMutation}); | ||
graphQL.operations.all({mutation: addPetMutation}); | ||
``` | ||
@@ -93,0 +93,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34761