FlashcardIntermediate
Unit Testing & Mocking in Jest
Unit tests verify a single component in isolation, using mocks to replace its external dependencies.
Question
What is unit testing, and why do we use mocks in Jest?
Click to reveal answer
Unit tests verify a single component in isolation, using mocks to replace its external dependencies.
What is unit testing, and why do we use mocks in Jest?