You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: