One of my favorite quick refactoring techniques is to keep the old function/method around and assert ✅ that the outputs are the same in development.
This lets you validate refactors before writing tests.
I use this with the Strangler Fig pattern: docs.microsoft.com/en-us/azure/ar…