A unit test checks a small unit of code in isolation, such as a function, against expected results. Dependencies are often replaced with controlled test doubles.
Unit test
A unit test checks a small unit of code in isolation, such as a function, against expected results. Dependencies are often replaced with controlled test doubles.