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.
A tutorial on using Jest snapshot testing to capture and compare the output of a React component before and after a state change.
The article argues against writing many small, single-assertion tests for React components, advocating for fewer, more comprehensive tests.
A tutorial on setting up and using Enzyme with Jest for unit and integration testing of React components.
Explains why nesting in tests, especially with beforeEach hooks, leads to unmaintainable code, using a React component as an example.
Explores why skilled developers write poor unit tests by misapplying production code principles, arguing test code should prioritize clarity over abstraction.
An article explaining the fundamentals of software testing, from basic assertions to advanced frameworks, and how to build your own testing tools.
Explores common developer struggles with writing and maintaining tests, and offers practical advice to overcome these challenges.
Final part of a series on refactoring a legacy Python library, focusing on safe code rehabilitation techniques and tooling.
A guide on achieving test isolation in React components to improve test reliability and prevent shared mutable state issues.
The author argues against using shallow rendering for React component testing, explaining its pitfalls and advocating for better alternatives.
An explanation of JavaScript mocking using a thumb war game example to test a non-deterministic function.
A guide explaining what JavaScript tests are by building a simple testing framework from scratch for pure functions.
A developer critiques snapshot testing, arguing it creates unclear tests that erode team trust and are often blindly regenerated when they fail.
A developer's journey building GreenPiThumb, an open-source Raspberry Pi bot that automates houseplant watering using JavaScript and AngularJS.
A guide to unit testing in Python, covering its benefits, components, and a practical walkthrough using the py.test framework.
A review of 'Perl Testing: A Developer's Notebook,' highlighting its practical approach to unit testing in Perl.
A developer's critique of Kent Beck's TDD book, highlighting its shortcomings in addressing legacy code and retroactive testing.
A programmer's first blog post introducing their Python-focused blog and involvement with the Entertainer Media Center project.