[IGNORE] Move from Jest to Vitest - #776
Open
Gladorme wants to merge 1 commit into
Open
Conversation
Gladorme
force-pushed
the
vitest-v4
branch
2 times, most recently
from
August 22, 2026 01:12
8def47f to
d5cece2
Compare
Gladorme
commented
Aug 22, 2026
| resolve: { | ||
| alias: [ | ||
| { | ||
| find: /^@perses-dev\/(client|components|core|dashboards|explore|plugin-system|spec)$/, |
Member
Author
There was a problem hiding this comment.
I tested removing it. Got error:
- ScatterChart:
No QueryClient set - Table: Virtuoso context was duplicated, so rows did not render
IA reason:
The published @perses-dev/* packages currently expose CommonJS and ESM. Vitest ends up loading both module variants, creating separate React contexts. The regex alias forces one ESM instance.
I guess it will be removed once we move to ESM only, probably really soon. Next thing I want to do with upgrading to Node 24 (LTS)
Signed-off-by: Guillaume <gladorme@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Last repo to move from Jest to Vitest following previous PR:
Screenshots
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes