mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 15:31:53 +00:00
066c7026e7
fix(tests): correctly call `async toMigrate` with vitest
While working on #38240, I noticed that the failing tests I was
writing didn't trigger.
It turns out that in 997c23502e, when we
migrated to Vitest, and made some functions `async`, we missed out on
making the tests themselves `async`.
This correctly applies the `async` modifier to test functions, allowing
them to correctly pass/fail when running async code.
We can also make sure that `toMigrate` is returning a Promise to
indicate it's asynchronous.