Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/graphql-testing

Package Overview
Dependencies
Maintainers
13
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/graphql-testing - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

2

dist/links/tests/utilities.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc