|
|
|
|
|
by dartos
725 days ago
|
|
I’ve been preaching this for a while. When a codebase gets too big, and devs gets too clever with their tests, the whole test suite becomes complicated. If your test suite is approaching the complexity of the actual codebase (what with layers of mocks and fixtures that are subtly interdependent,) how could you be expected to trust a test you wrote more than the code you wrote. |
|
All those mocks, and other Jest code, all seem overly complicated but I don't know of anything "better".