DEV Community

Discussion on: When should I (not) use mocks in testing?

Collapse
 
kettanaito profile image
Artem Zakharchenko

Undoubtedly. This example's purpose isn't to bring an exact implementation to the light, but to show that there may be small pieces of logic that depend on side effects. Perhaps you see a better example to this?