How to mock data in React with a fake API
A tutorial on using a JavaScript fake API with mock data to build a React frontend when a backend isn't available.
A tutorial on using a JavaScript fake API with mock data to build a React frontend when a backend isn't available.
Discusses the pitfalls of mocking API clients in tests and suggests mocking `window.fetch` directly for better confidence.
A tutorial on testing GraphQL resolvers with Jest, covering authentication, error handling, and happy/sad path scenarios.
A tutorial on how to mock Firebase database and authentication features using Jest for unit testing in JavaScript/Node.js.
A tutorial on testing Axios API calls in Jest, including mocking requests and handling success/error cases with code examples.
A tutorial on writing tests for Apollo Client queries and mutations in a React application using a mocked GraphQL server.