apollo-client-mock
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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 |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
10053
5
2
7
91
+ Addedapollo-link-schema@^1.1.0
+ Addedapollo-link-schema@1.2.5(transitive)