Unless your test suite needs a rewrite, as well…
(Better refactor, of course)
(Better refactor, of course)
I agree it's pretty common though. I've also seen huge test suites of only unit tests, no integration tests. As a result, you have no assurance that your refactors work because changing the inner workings fundamentally requires you to change the unit tests too, and nothing checks the top-level interface.
Not both at the same time, in my opinion.