I'm looking at a very old legacy app and was think...
# kotest
k
I'm looking at a very old legacy app and was thinking of updating dependencies. I'm stuck with a problem upgrading from kotest 5.0, exactly as described by this issue: https://github.com/kotest/kotest/issues/3124. That is, this old code has BehaviorSpec with
Then { ... And { ... } }
which needs to be changed to
Then { ... } And { ... }
. Now the problem is, there are 194 such instances in the codebase. Is there by any chance some migration tool that will automatically perform this change? It's a long shot, but I thought it might be worth asking.
e
regex? 😁
t
idea offers structured search and replace, I never managed to use it myself but it seems made for these cases and from what I could see is very powerful
k
Thanks, I'll investigate that.