I have always thought that one of the most useful reasons for having unit tests is to help refactoring, but with the rapid change of js frameworks or even languages, it seems one is more likely to transition to something entirely different every 4 or 5 years. Which makes the roi much lower on some types of testing. Can anyone who has changed tech stacks/frameworks often for an app/site comment?