Hi devs! I'm finding myself in a tricky situation and I'd really appreciate if you could express your opinion on my approach to this.
So I'm working on a feature for a vue app and I realized that in order to implement it, I need to refactor a big and important part of the code.
I'm prone to a lot of frustrating debugging hours If I choose to refactor this way.
So I came with the following idea: rewrite everything with TypeScript and also write useful tests. Even though it would take more than just refactoring, I strongly believe that this idea will help me long-term.
What would you advise me to do?
Thank you for your time.