r/learnjavascript • u/MarsupialCreative890 • May 31 '26
Are Unit Tests, automation Overrated?
Unit tests on pure functions (no mocks) save me from tiny changes but for structural refactoring like moving, splitting, or merging functions tends to break tests and crash them , even when behavior doesn’t change.
UI tests break frequently with small changes and often require full rewrites.
Are Unit Tests, automation Overrated?
0
Upvotes
View all comments
2
u/GoodishCoder May 31 '26
In not doing refactors without a good chunk of the desired behavior tested.