Regression tests

Regression tests are used to verify that an issue has been fixed. If we are using TDD or BDD, whenever we encounter an issue, we should create a unit test that reproduces the issue before we fix the issue. By doing this, we will be able to reproduce past issues and ensure that we don't have to deal with the same issue ever again.

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.