
Testing
Test Doubles: Mocks, Stubs, Spies and Fakes
Learn the five test doubles in JavaScript: dummies, stubs, spies, mocks and fakes, with Vitest examples, when to use each and the cost of over-mocking.
8 min read
Tag
1 post

Learn the five test doubles in JavaScript: dummies, stubs, spies, mocks and fakes, with Vitest examples, when to use each and the cost of over-mocking.