
Writing Change-Proof Software with Tests - JSJ 555
JavaScript Jabber
00:00
Test Doubles in the Software Engineering Community
Each test renders the entire application with its own data set, with its own products. So if my store uses, for instance, MongoDB as a database, my end to end test would use MongoDB. But my React component tests would not use Mongo. They would use in memory repository pattern in memory data access objects. We have three types of test doubles: A stub, a mock and a fake.
Transcript
Play full episode