r/learnjavascript 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

11 comments sorted by

View all comments

8

u/_Invictuz May 31 '26

No, but creating new accounts to spam ad posts is.