Skip to content

feat: add --vitest flag for @chromatic-com/vitest integration#1252

Merged
jmhobbs merged 1 commit intomainfrom
ari/add-vitest-flag
Apr 14, 2026
Merged

feat: add --vitest flag for @chromatic-com/vitest integration#1252
jmhobbs merged 1 commit intomainfrom
ari/add-vitest-flag

Conversation

@AriPerkkio
Copy link
Copy Markdown
Member

@AriPerkkio AriPerkkio commented Mar 18, 2026

Adds --vitest command for Chromatic CLI, so that users can upload archives that were recorded via @chromatic-com/vitest.

Previous PRs that were split from here in separate PRs:

Related issue:

👷‍♂️ Milestone 7: Chromatic CLI can upload Vitest projects

  • Owner: @AriPerkkio
  • Completed By: 22nd April
  • chromatic-cli can do chromatic --vitest.

How to test

Download Stackblitz project locally: https://stackblitz.com/~/edit/chromatic-cli-vitest?file=package.json&view=editor

image
$ cd <project>
$ npm install --legacy-peer-deps # Flag required since chromatic-cli does not accept "0.0.0-" versions. It probably should.

# Prepare git commit for chromatic
$ echo "node_modules" > .gitignore
$ git init
$ git add .
$ git commit -m init

$ export CHROMATIC_TOKEN <your token>
$ npm run upload

Draft PR for the canary release.

📦 Published PR as canary version: 16.4.0--canary.1252.24413152111.0

✨ Test out this PR locally via:

npm install chromatic@16.4.0--canary.1252.24413152111.0
# or 
yarn add chromatic@16.4.0--canary.1252.24413152111.0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 18, 2026

📦 Package Size: 5732 KB
✅ Compared to main: 0 KB 186b70d (5732 KB)

@AriPerkkio

This comment was marked as outdated.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.95%. Comparing base (186b70d) to head (832c4b6).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
bin-src/init.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1252      +/-   ##
==========================================
- Coverage   77.98%   77.95%   -0.03%     
==========================================
  Files         189      189              
  Lines        3624     3634      +10     
  Branches     1091     1093       +2     
==========================================
+ Hits         2826     2833       +7     
- Misses        686      689       +3     
  Partials      112      112              

☔ 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/add-vitest-flag branch 4 times, most recently from 82c82a1 to a5fd127 Compare April 7, 2026 06:18
@AriPerkkio AriPerkkio force-pushed the ari/add-vitest-flag branch from a5fd127 to 832c4b6 Compare April 9, 2026 08:29
@AriPerkkio AriPerkkio marked this pull request as ready for review April 9, 2026 13:43
@AriPerkkio AriPerkkio removed the DO NOT MERGE Block: Prevent merging this PR label Apr 9, 2026
@codykaup codykaup added release Auto: Create a `latest` release when merged minor Auto: Increment the minor version when merged labels Apr 14, 2026
Copy link
Copy Markdown
Contributor

@codykaup codykaup left a comment

Choose a reason for hiding this comment

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

Sorry for the delay on this one - LGTM! Feel free to merge whenever you feel comfortable!

@jmhobbs jmhobbs added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 727bfbf Apr 14, 2026
30 of 32 checks passed
@jmhobbs jmhobbs deleted the ari/add-vitest-flag branch April 14, 2026 17:20
@chromatic-ci-bot
Copy link
Copy Markdown
Collaborator

🚀 PR was released in v16.3.0 🚀

@chromatic-ci-bot chromatic-ci-bot added the released Verdict: This issue/pull request has been released label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Auto: Increment the minor version when merged release Auto: Create a `latest` release when merged released Verdict: This issue/pull request has been released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants