Why is mocking important in unit tests?
To avoid testing external dependencies and isolate the system under test.
To replace all type checks with assertions.
To test multiple systems simultaneously.
To reduce the need for test cases.
This question is part of this quiz :
Testing with TypeScript Quiz