diff --git a/.changeset/big-stingrays-deliver.md b/.changeset/big-stingrays-deliver.md new file mode 100644 index 00000000000..94e31ed8fb1 --- /dev/null +++ b/.changeset/big-stingrays-deliver.md @@ -0,0 +1,5 @@ +--- +'@graphql-tools/mock': patch +--- + +Fixed typos in the documentation diff --git a/packages/mock/src/MockStore.ts b/packages/mock/src/MockStore.ts index fe656c3314c..8a304826bc6 100644 --- a/packages/mock/src/MockStore.ts +++ b/packages/mock/src/MockStore.ts @@ -676,9 +676,9 @@ function assertIsDefined(value: T, message?: string): asserts value is NonNul /** * Will create `MockStore` for the given `schema`. * - * A `MockStore` will generate mock values for the given schem when queried. + * A `MockStore` will generate mock values for the given schema when queried. * - * It will stores generated mocks, so that, provided with same arguments + * It will store generated mocks, so that, provided with same arguments * the returned values will be the same. * * Its API also allows to modify the stored values. diff --git a/packages/mock/src/mockServer.ts b/packages/mock/src/mockServer.ts index d100081f484..5e72f1201ec 100644 --- a/packages/mock/src/mockServer.ts +++ b/packages/mock/src/mockServer.ts @@ -5,7 +5,7 @@ import { addMocksToSchema } from './addMocksToSchema.js'; import { IMocks, IMockServer } from './types.js'; /** - * A convenience wrapper on top of addMocksToSchema. It adds your mock resolvers + * A convenience wrapper on top of `addMocksToSchema`. It adds your mock resolvers * to your schema and returns a client that will correctly execute your query with * variables. Note: when executing queries from the returned server, context and * root will both equal `{}`.