www.jayfreestone.com
The jest.mock() escape hatch
2
Mocking concrete dependencies is a code-smell. Prefer dependency injection and explicitness over jest.mock(). Read full article