Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitest #6326

Open
tisto opened this issue Sep 25, 2024 · 0 comments
Open

Vitest #6326

tisto opened this issue Sep 25, 2024 · 0 comments

Comments

@tisto
Copy link
Member

tisto commented Sep 25, 2024

PLIP (Plone Improvement Proposal)

Responsible Persons

Proposer: Víctor Fernandez de Alba (@sneridagh)

Seconder:

Abstract

Replace Jest with Vitest as the Volto unit test runner.

Motivation

Jest is showing its age compared to Vitest. Vitest is the unit test runner that uses Vite under the hood. It uses a zero configuration model, thanks to be Vite-based. It's faster as it is Vite who transpiles the code.

Assumptions

None.

Proposal & Implementation

Vitest shares the same syntax as they use Mocha/Chai we will have to adapt the test setup to meet Vitest requirements and move the mocks to the Vitest style, if needed.

Deliverables

Volto will be using Vitest instead of Jest for running tests.
Documentation on how to migrate projects and add-ons to use Vitest.
Documentation on Vitest.

Risks

None.

Participants

Open for volunteers. This could be easily a GSOC for next year.

@tisto tisto added this to Plone 7 Sep 25, 2024
@sneridagh sneridagh added this to the Plone 7.0 milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants