/api-request-mocking-demo

A demo application showing how to mock API requests in Create React App using Mock Service Workers for development and testing

Primary LanguageJavaScript

API Request Mocking Demo

This project is a working demo of the API mocking examples discussed in the blog post: Mocking API Requests For Testing And Development Using Mock Service Workers using data from the Open Library Search API.

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.