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

chore(atomic): migrate unit tests to vitest/browser #4865

Merged
merged 17 commits into from
Jan 20, 2025

Conversation

alexprudhomme
Copy link
Contributor

@alexprudhomme alexprudhomme commented Jan 15, 2025

https://coveord.atlassian.net/browse/KIT-3863

Following this example PR : #4858.

This PR migrates most of the tests in atomic to the new solution we will be using for unit testing in atomic :

Vitest Browser runs our tests in a browser and enables simple ES module mocking. You will see it also opens up a UI when you run npm run test in atomic !!

Copy link

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 243.8 243.8 0
commerce 355 355 0
search 414.9 414.9 0
insight 406.2 406.2 0
recommendation 256.1 256.1 0
ssr 408.8 408.8 0
ssr-commerce 372.7 372.7 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

Copy link
Collaborator

@louis-bompart louis-bompart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

Copy link
Contributor

@fpbrault fpbrault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

@alexprudhomme alexprudhomme added this pull request to the merge queue Jan 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2025
@alexprudhomme alexprudhomme added this pull request to the merge queue Jan 17, 2025
@alexprudhomme alexprudhomme removed this pull request from the merge queue due to a manual request Jan 17, 2025
@alexprudhomme alexprudhomme added this pull request to the merge queue Jan 20, 2025
Merged via the queue into master with commit 5030ca2 Jan 20, 2025
124 checks passed
@alexprudhomme alexprudhomme deleted the stencil-vitest branch January 20, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants