DEV Community

Discussion on: Don't use non-test constants in unit tests

Collapse
 
mentallurg profile image
mentallurg

if the API changes shouldn't the tests change too? - no. Well, the tests should of course change. But the most important thing is, that this change should not be done automatically. The test should be changed manually, so that we have a chance to review the changes needed, to think about desired behaviour, about alternative.