Skip to content

Installation

GraphQL Testing Library has peerDependencies listings for msw at ^2.0.0 and graphql at ^15.0.0 || ^16.0.0.

Install them along with this library using your preferred package manager:

npm

Terminal window
npm install --save-dev @apollo/graphql-testing-library msw graphql

pnpm

Terminal window
pnpm add --save-dev @apollo/graphql-testing-library msw graphql

yarn

Terminal window
yarn add --dev @apollo/graphql-testing-library msw graphql

bun

Terminal window
bun add --dev @apollo/graphql-testing-library msw graphql