3 ms·
I like mocking internals because I can control the flow of the logic. I will write a mocking test to ensure a business flow is followed at the test level just
by WrtCdEvrydy 7y ago
I like mocking internals because I can control the flow of the logic.
I will write a mocking test to ensure a business flow is followed at the test level just because I have fallen too many times for a developer updating snapshots because they made a change... but they update all the snapshots even the ones that show they introduced a new bug.