How to Jest Snapshot Test the Difference
A tutorial on using Jest snapshot testing to capture and compare the output of a React component before and after a state change.
Personal blog about React and JavaScript
333 Articles from this blog
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.
Explains the preventDefault() method in React for handling form submissions and preventing browser reloads.
A tutorial on making React components reusable by refactoring them from specific to generic using props as their API.