Testing API Calls With React Testing Library and Jest
A guide on testing API calls in React components using React Testing Library and Jest, covering both success and failure scenarios.
A guide on testing API calls in React components using React Testing Library and Jest, covering both success and failure scenarios.
A tutorial on using React Testing Library to test React components from a user's perspective, covering setup with Jest.
A guide to setting up integration tests for a TypeScript Node/Express API using Jest, Supertest, Knex, and Objection.js.
Discusses the pitfalls of mocking API clients in tests and suggests mocking `window.fetch` directly for better confidence.
A guide to improving test error messages when creating abstractions in JavaScript testing frameworks like Jest.
A tutorial on testing GraphQL resolvers with Jest, covering authentication, error handling, and happy/sad path scenarios.
A tutorial on setting up and running tests for a Node.js application using the Jest testing framework.
A tutorial on how to mock Firebase database and authentication features using Jest for unit testing in JavaScript/Node.js.
A guide on configuring Jest to work with Babel Module Resolver aliases for cleaner imports in tests.
A tutorial on testing Axios API calls in Jest, including mocking requests and handling success/error cases with code examples.
A tutorial on testing React components connected to a Redux store using Jest and Redux Mock Store.
A tutorial on using Jest snapshot testing to capture and compare the output of a React component before and after a state change.
A guide to using shallow rendering in Jest snapshot tests to avoid large outputs and duplicated test setups for React parent components.
A tutorial series on setting up testing libraries and writing unit, integration, and E2E tests for React components.
A tutorial on setting up and using Enzyme with Jest for unit and integration testing of React components.
A tutorial on setting up and using Jest to test React components, including assertions and snapshot testing.
A guide on achieving test isolation in React components to improve test reliability and prevent shared mutable state issues.
An explanation of JavaScript mocking using a thumb war game example to test a non-deterministic function.
A developer troubleshoots a tricky JavaScript testing error after updating dependencies like React and Jest, despite mocked console methods.
A developer critiques snapshot testing, arguing it creates unclear tests that erode team trust and are often blindly regenerated when they fail.