Site is currently on development mode

Test Driven Development (TDD) with React, React Testing Library, and Jest

Last updated 1 year ago by Jon Preece


Test Driven Development (TDD) is a reversal in traditional thinking and coding processes. Rather than writing code, and then writing tests to verify that code, the process is reversed. Tests are written first and then the code. The result of TDD is improved code quality, higher test coverage, and confidence within the team and the business that changes made to the system will not negatively impact it in ways that were unexpected. TDD opens the door to more regular automated releases (continuous delivery), and the burden (and cost) of manual testing can be greatly reduced.

This post describes what Test-Driven Development (TDD) is to me, the company I work for, the teams I work in/with, and my colleagues, in the context of building a React web application with React Testing Library and Jest.

Read full Article