renovatebot / renovate

Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
https://mend.io/renovate
GNU Affero General Public License v3.0
17.43k stars 2.29k forks source link

Try Vitest test runner on this repository #21301

Open HonkingGoose opened 1 year ago

HonkingGoose commented 1 year ago

Describe the proposed change(s).

I think we want to try the Vitest test runner, to see if it's faster then Jest? I've created this issue to discuss things, and so I can link to other relevant issues.

Vitest says that: ^quote

Vitest has been designed with a Jest compatible API, in order to make the migration from Jest as simple as possible. Despite those efforts, you may still run into the following differences:

Todos to migrate to Vitest

These todos come from the Vitest guide to migrate from Jest:

Discussion

Some things to think about:

Related issues:

Is this a feature you are interested in implementing yourself?

No, I'll let somebody else test Vitest. 😉

HonkingGoose commented 1 year ago

@zharinov sped up the tests massively. 🥳 My latest docs PR got automerged by GitHub via Merge Queue in about 10 minutes, compared to about 25 minutes before the changes. 😱

Do the maintainers still want to try Vitest, or are we happy with our current test speed?

viceice commented 1 year ago

yes, would like to try it.

viceice commented 1 year ago

i think I've not enough time to make it alone 🙃

RahulGautamSingh commented 1 year ago

i think I've not enough time to make it alone 🙃

I would be happy to contribute here too☺

viceice commented 1 year ago

not sure about the best way to start. does vitest have something like the jest.mock functions? so we can try to create some compabillity stuff?

viceice commented 1 year ago

https://vitest.dev/guide/migration.html 🙃