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

apollo-client-mock

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-client-mock - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

yarn.lock

2

index.js

@@ -12,3 +12,3 @@ const { ApolloClient } = require('apollo-client')

return function createClient(overwriteMocks = {}) {
const mergedMocks = merge(mockResolvers, overwriteMocks)
const mergedMocks = merge({...mockResolvers}, overwriteMocks)

@@ -15,0 +15,0 @@ const schema = makeExecutableSchema({ typeDefs })

{
"name": "apollo-client-mock",
"version": "0.0.7",
"version": "0.0.8",
"description": "Easily mock the Apollo client for your integration tests",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "cd tests && yarn && yarn test"
},

@@ -31,2 +31,3 @@ "repository": {

"apollo-link": "^1.2.2",
"apollo-link-schema": "^1.1.0",
"graphql": "^0.13.2",

@@ -33,0 +34,0 @@ "graphql-tools": "^3.0.1",

@@ -66,3 +66,3 @@ # Apollo Client Mock

The following example shows you can overwrite each resolver per test
The following example shows you can overwrite each resolver per test. This is useful if you want to setup a spy for your resolver function to ensure it has been called. This is particularly useful if your component just makes a mutation but does not actually show the result of the state change in the component.

@@ -92,3 +92,1 @@ ```js

```
This is useful if you want to setup a spy for your resolve function and you want to ensure it has been called
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