How to test React-Redux connected Components
A tutorial on testing React components connected to a Redux store using Jest and Redux Mock Store.
RobinWieruch.de is the personal site and blog of Robin Wieruch, a software engineer and educator known for clear, practical tutorials on React, TypeScript, Next.js, GraphQL, Node.js, and testing. The articles focus on real projects and common problems such as state management, authentication, data fetching, pagination, performance, and testing strategies. Robin is the author of The Road to React and other hands-on guides. He publishes step by step walkthroughs that pair code with explanations, so readers learn the concepts and the reasoning behind them.
335 articles from this blog
A tutorial on testing React components connected to a Redux store using Jest and Redux Mock Store.
A guide to establishing a productive Git workflow for development teams, covering branch strategies and best practices.
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 technical guide on integrating Redux Persist with Next.js to maintain the Redux store state between browser sessions.
A tutorial on setting up and writing tests for a React Counter component using Mocha, Chai, and Enzyme.
A tutorial on setting up test coverage for a JavaScript project using Coveralls.io and Travis CI, including adding a coverage badge.
A tutorial on setting up Continuous Integration for a JavaScript project using Travis CI, including configuration and testing.
A tutorial on setting up and writing end-to-end tests for a React application using the Cypress testing framework.
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 step-by-step tutorial explaining JavaScript closures with a practical example of creating employee objects with unique identifiers.
Essential JavaScript concepts and ES6+ features you need to know before or while learning React, based on teaching experience.
A developer explains why now is the best time to learn JavaScript, highlighting the stable ecosystem and importance of fundamentals.
A developer shares their experience migrating their business website to Gatsby.js, highlighting its benefits for performance and development.
A tutorial on setting up and using ESLint for React projects, including configuration with Webpack and popular rule sets.
A tutorial on integrating Web Components into React, covering props, events, and using a custom hook for seamless integration.
A beginner tutorial on building reusable Web Components (Custom Elements) with HTML, CSS, and JavaScript, featuring a dropdown example.
A step-by-step tutorial on using the useState hook for state management in React function components.