This repository illustrates how to use msw to mock a GraphQL API for development + tests in Create React App project. It uses msw to intercept requests to fake API and @mswjs/data to create fake database and store it's data in memory.
$ npm start
$ npm run test