Skip to content

♻️(docs-app) Switch from Jest tests to Vitest #1269

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Aug 6, 2025

Purpose

Jest has difficulty to test many part of the application, Vitest seems more reliable to do unit testing.
https://vitest.dev/

Proposal

We have migrated the testing framework from Jest to Vitest for the Docs application.
This change includes updates to test files, configuration files, and the addition of new setup files for Vitest.

@AntoLC AntoLC self-assigned this Aug 6, 2025
We have migrated the testing framework from Jest
to Vitest for the Docs application.
This change includes updates to test files,
configuration files, and the addition of new setup
files for Vitest.
@AntoLC AntoLC force-pushed the refacto/jest-to-vitest branch from 28da9f3 to ef3da58 Compare August 6, 2025 12:35
Thanks to Vitest we can now assert more complicated
parts of the code without too much mocking.
@AntoLC AntoLC requested a review from lunika August 6, 2025 13:47
@AntoLC
Copy link
Collaborator Author

AntoLC commented Aug 6, 2025

@StephanMeijer Hi! Maybe you have an opinion about this PR ?

@AntoLC AntoLC linked an issue Aug 6, 2025 that may be closed by this pull request
@StephanMeijer
Copy link
Contributor

@AntoLC Absolute improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

♻️ Switch test frontend to Vitest
2 participants