@graphql-tools/mock 9.0.14 → 9.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/MockStore.js +2 -2
- package/cjs/mockServer.js +1 -1
- package/esm/MockStore.js +2 -2
- package/esm/mockServer.js +1 -1
- package/package.json +1 -1
- package/typings/MockStore.d.cts +2 -2
- package/typings/MockStore.d.ts +2 -2
- package/typings/mockServer.d.cts +1 -1
- package/typings/mockServer.d.ts +1 -1
package/cjs/MockStore.js
CHANGED
|
@@ -478,9 +478,9 @@ function assertIsDefined(value, message) {
|
|
|
478
478
|
/**
|
|
479
479
|
* Will create `MockStore` for the given `schema`.
|
|
480
480
|
*
|
|
481
|
-
* A `MockStore` will generate mock values for the given
|
|
481
|
+
* A `MockStore` will generate mock values for the given schema when queried.
|
|
482
482
|
*
|
|
483
|
-
* It will
|
|
483
|
+
* It will store generated mocks, so that, provided with same arguments
|
|
484
484
|
* the returned values will be the same.
|
|
485
485
|
*
|
|
486
486
|
* Its API also allows to modify the stored values.
|
package/cjs/mockServer.js
CHANGED
|
@@ -5,7 +5,7 @@ const graphql_1 = require("graphql");
|
|
|
5
5
|
const schema_1 = require("@graphql-tools/schema");
|
|
6
6
|
const addMocksToSchema_js_1 = require("./addMocksToSchema.js");
|
|
7
7
|
/**
|
|
8
|
-
* A convenience wrapper on top of addMocksToSchema
|
|
8
|
+
* A convenience wrapper on top of `addMocksToSchema`. It adds your mock resolvers
|
|
9
9
|
* to your schema and returns a client that will correctly execute your query with
|
|
10
10
|
* variables. Note: when executing queries from the returned server, context and
|
|
11
11
|
* root will both equal `{}`.
|
package/esm/MockStore.js
CHANGED
|
@@ -472,9 +472,9 @@ function assertIsDefined(value, message) {
|
|
|
472
472
|
/**
|
|
473
473
|
* Will create `MockStore` for the given `schema`.
|
|
474
474
|
*
|
|
475
|
-
* A `MockStore` will generate mock values for the given
|
|
475
|
+
* A `MockStore` will generate mock values for the given schema when queried.
|
|
476
476
|
*
|
|
477
|
-
* It will
|
|
477
|
+
* It will store generated mocks, so that, provided with same arguments
|
|
478
478
|
* the returned values will be the same.
|
|
479
479
|
*
|
|
480
480
|
* Its API also allows to modify the stored values.
|
package/esm/mockServer.js
CHANGED
|
@@ -2,7 +2,7 @@ import { graphql, isSchema } from 'graphql';
|
|
|
2
2
|
import { makeExecutableSchema } from '@graphql-tools/schema';
|
|
3
3
|
import { addMocksToSchema } from './addMocksToSchema.js';
|
|
4
4
|
/**
|
|
5
|
-
* A convenience wrapper on top of addMocksToSchema
|
|
5
|
+
* A convenience wrapper on top of `addMocksToSchema`. It adds your mock resolvers
|
|
6
6
|
* to your schema and returns a client that will correctly execute your query with
|
|
7
7
|
* variables. Note: when executing queries from the returned server, context and
|
|
8
8
|
* root will both equal `{}`.
|
package/package.json
CHANGED
package/typings/MockStore.d.cts
CHANGED
|
@@ -56,9 +56,9 @@ export declare class MockStore implements IMockStore {
|
|
|
56
56
|
/**
|
|
57
57
|
* Will create `MockStore` for the given `schema`.
|
|
58
58
|
*
|
|
59
|
-
* A `MockStore` will generate mock values for the given
|
|
59
|
+
* A `MockStore` will generate mock values for the given schema when queried.
|
|
60
60
|
*
|
|
61
|
-
* It will
|
|
61
|
+
* It will store generated mocks, so that, provided with same arguments
|
|
62
62
|
* the returned values will be the same.
|
|
63
63
|
*
|
|
64
64
|
* Its API also allows to modify the stored values.
|
package/typings/MockStore.d.ts
CHANGED
|
@@ -56,9 +56,9 @@ export declare class MockStore implements IMockStore {
|
|
|
56
56
|
/**
|
|
57
57
|
* Will create `MockStore` for the given `schema`.
|
|
58
58
|
*
|
|
59
|
-
* A `MockStore` will generate mock values for the given
|
|
59
|
+
* A `MockStore` will generate mock values for the given schema when queried.
|
|
60
60
|
*
|
|
61
|
-
* It will
|
|
61
|
+
* It will store generated mocks, so that, provided with same arguments
|
|
62
62
|
* the returned values will be the same.
|
|
63
63
|
*
|
|
64
64
|
* Its API also allows to modify the stored values.
|
package/typings/mockServer.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypeSource } from '@graphql-tools/utils';
|
|
2
2
|
import { IMocks, IMockServer } from './types.cjs';
|
|
3
3
|
/**
|
|
4
|
-
* A convenience wrapper on top of addMocksToSchema
|
|
4
|
+
* A convenience wrapper on top of `addMocksToSchema`. It adds your mock resolvers
|
|
5
5
|
* to your schema and returns a client that will correctly execute your query with
|
|
6
6
|
* variables. Note: when executing queries from the returned server, context and
|
|
7
7
|
* root will both equal `{}`.
|
package/typings/mockServer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypeSource } from '@graphql-tools/utils';
|
|
2
2
|
import { IMocks, IMockServer } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
* A convenience wrapper on top of addMocksToSchema
|
|
4
|
+
* A convenience wrapper on top of `addMocksToSchema`. It adds your mock resolvers
|
|
5
5
|
* to your schema and returns a client that will correctly execute your query with
|
|
6
6
|
* variables. Note: when executing queries from the returned server, context and
|
|
7
7
|
* root will both equal `{}`.
|