fetch-mock example Install the dependencies $ yarn install Run the test $ yarn test or $ yarn test:watch