Skip to content

fix(vitest): resolve root from root config#326

Merged
AriPerkkio merged 1 commit intomainfrom
ari/fix-resolve-root-from-root-config
Apr 30, 2026
Merged

fix(vitest): resolve root from root config#326
AriPerkkio merged 1 commit intomainfrom
ari/fix-resolve-root-from-root-config

Conversation

@AriPerkkio
Copy link
Copy Markdown
Member

@AriPerkkio AriPerkkio commented Apr 27, 2026

Issue: Related to #295

What Changed

Results should be written in root of the whole Vitest process, not in Vitest project's root. All test reporters should output to main root.

Also when outputting files to the same directory, we need to make sure multiple projects don't overwrite each other's results. So now we'll be namespacing results with project name, when there are multiple projects configured.

How to test

There's test case that fails without this fix.

Noticed this while testing against https://github.com/skeletonlabs/skeleton.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 27, 2026

🦋 Changeset detected

Latest commit: 6faf415

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chromatic-com/vitest Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.01%. Comparing base (ed87541) to head (6faf415).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
+ Coverage   91.47%   92.01%   +0.54%     
==========================================
  Files          22       22              
  Lines         598      601       +3     
  Branches      109      110       +1     
==========================================
+ Hits          547      553       +6     
+ Misses         48       45       -3     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AriPerkkio AriPerkkio force-pushed the ari/fix-resolve-root-from-root-config branch 2 times, most recently from 7ac80ab to 6e0fb33 Compare April 28, 2026 07:54
@AriPerkkio AriPerkkio force-pushed the ari/fix-resolve-root-from-root-config branch from 6e0fb33 to 6faf415 Compare April 28, 2026 08:36
@AriPerkkio AriPerkkio marked this pull request as ready for review April 28, 2026 09:09
@AriPerkkio AriPerkkio self-assigned this Apr 29, 2026
@AriPerkkio AriPerkkio merged commit 9f6728e into main Apr 30, 2026
12 checks passed
@AriPerkkio AriPerkkio deleted the ari/fix-resolve-root-from-root-config branch April 30, 2026 12:19
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.

2 participants