Skip to content
PluginStats

@snapvisor/vitest weekly downloads statistics

By snapvisor · npm · Testing

Vitest SDK for visual testing with Snapvisor.

View on npm Fresh · Dec 6, 2026

@snapvisor/vitest has 870 recorded weekly downloads on npm, a decrease of 29.7% over the past 30 days, ranking #2117 of 3,247 tracked listings.

Weekly downloads
870
Official API · Dec 5, 2026
7-day growth
+22.0%
+157 weekly downloads
30-day growth
-29.7%
-368 weekly downloads
90-day growth
+1426%
+813 weekly downloads
Rank
#2117
▼ 36 in 7 days

About @snapvisor/vitest

Snapvisor Vitest integration

npm version npm dm npm dt

Capture screenshots and snapshots from your Vitest browser tests and upload them to Snapvisor, which compares them with your approved baseline and reports the result on your pull request.

Visit the Vitest SDK documentation for guides, API and more.

Installation

Install the package:

npm install --save-dev @snapvisor/vitest

snapvisorSnapshot runs in any Vitest test — browser or Node — and needs nothing else.

To capture screenshots with snapvisorScreenshot, run your tests in Vitest browser mode with the Playwright provider and install the following peer dependencies:

npm install --save-dev vitest @vitest/browser @vitest/browser-playwright playwright

Usage

Register the plugin in your Vitest config:

// vitest.config.ts
import { defineConfig } from "vitest/config";
import { playwright } from "@vitest/browser-playwright";
import { snapvisorVitestPlugin } from "@snapvisor/vitest/plugin";

export default defineConfig({
  plugins: [
    snapvisorVitestPlugin({
      // Upload the screenshots to Snapvisor at the end of the run.
      uploadToSnapvisor: process.env.CI === "true",
    }),
  ],
  test: {
    browser: {
      enabled: true,
      headless: true,
      provider: playwright(),
      instances: [{ browser: "chromium" }],
    },
  },
});

Then take screenshots from your browser tests:

import { test } from "vitest";
import { render } from "vitest-browser-react";
import { snapvisorScreenshot } from "@snapvisor/vitest";
import { Button } from "./Button";

test("Button", async () => {
  render(<Button>Click me</Button>);
  await snapvisorScreenshot("button");
});
Automatic naming

The name is optional. When omitted, Snapvisor derives one from the current test, mimicking Vitest snapshots. Several unnamed captures in the same test get an incrementing counter so they stay unique:

test("Button", async () => {
  render(<Button>Click me</Button>);
  await snapvisorScreenshot(); // -> "src/Button.test.tsx > Button 1"
  await snapvisorScreenshot(); // -> "src/Button.test.tsx > Button 2"
});

Unlike Vitest — which keeps a per-file .snap, so its keys only need to be unique within a file — Snapvisor names are global across the build. The generated name therefore includes the test file path, so two tests with the same title in different files never collide.

Snapshots

snapvisorSnapshot captures a snapshot of any value — not just a screenshot — and uploads it to Snapvisor to diff across builds, mimicking Vitest snapshots. Unlike snapvisorScreenshot, it does not need a browser and works in both browser and Node tests.

The value comes first; the name is optional. Omit it to auto-name the snapshot from the current test (like screenshots above), or pass options.name to set it explicitly:

import { test } from "vitest";
import { snapvisorSnapshot } from "@snapvisor/vitest";

test("API response", async () => {
  const user = await fetchUser();
  // Objects are serialized with `@vitest/pretty-format`, strings are written
  // verbatim.
  await snapvisorSnapshot(user); // -> "src/user.test.ts > API response 1"
  await snapvisorSnapshot(user, { name: "user" }); // explicit name
});

Use the extension option to control how Snapvisor renders and diffs the snapshot, and tag to attach tags:

await snapvisorSnapshot(JSON.stringify(config, null, 2), {
  name: "config",
  extension: ".json",
  tag: "config",
});

Screenshots and snapshots are both written to the ./snapshots directory by default (configurable via the plugin root option) and uploaded by the reporter when uploadToSnapvisor is enabled.

Authentication

Uploads need your Snapvisor project token. Create a project in the Snapvisor app, copy its token, and expose it to your CI job as the SNAPVISOR_TOKEN environment variable (store it as a CI secret, never in the repository). ARGOS_TOKEN is still read too and wins if both are set, so pipelines already wired for the Argos SDKs keep working. On GitHub Actions you can skip the token with tokenless authentication.

The Argos-named exports from earlier versions (argosVitestPlugin, uploadToArgos, argosScreenshot, argosSnapshot) still work.

Links

Attribution

Based on Argos (MIT, Copyright 2022 Smooth Code). Snapvisor modifications are copyright Devino Solutions Inc. See the LICENSE.

Description from the npm listing.

  • argos
  • argos-ci
  • vitest
  • vitest-plugin
  • vitest-browser
  • screenshot
  • testing
  • component-testing
  • visual-testing
  • visual-regression
  • visual-regression-testing
  • screenshot-testing
  • snapshot-testing

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@snapvisor/vitest weekly downloads on npm, last 90 days: 870 weekly downloads as of Dec 5, 2026, +1426% over 90 days.@snapvisor/vitestWeekly downloads on npm · Last 90 days870downloads / week+1426% over 90 days02004006008001K1.2K1.4K1.6K1.8KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@snapvisor/vitest weekly downloads on npm, last 90 days: 870 weekly downloads as of Dec 5, 2026, +1426% over 90 days.

7/30/90-day growth

@snapvisor/vitest weekly downloads growth on npm: +22.0% over 7 days, -29.7% over 30 days, +1426% over 90 days.@snapvisor/vitestWeekly downloads growth on npm870downloads / week now7-day growth+157 weekly downloads+22.0%30-day growth-368 weekly downloads-29.7%90-day growth+813 weekly downloads+1426%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@snapvisor/vitest weekly downloads growth on npm: +22.0% over 7 days, -29.7% over 30 days, +1426% over 90 days.

Ranking history

@snapvisor/vitest npm ranking history: currently #2117 (by weekly downloads).@snapvisor/vitestnpm ranking · by weekly downloads · Last 90 days#2117current rank#1300#1400#1500#1600#1700#1800#1900#2000#2100#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@snapvisor/vitest npm ranking history: currently #2117 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 106, #17 (overall #2,117)
All npm: every listing in weekly downloads order

Listing placement

Testing26 listings · 2 pages · page 1, #8 (overall #8)
Testing: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @snapvisor/vitest
Date (UTC)Weekly downloadsChange vs. previous
870-131
1,001-321
1,322+236
1,086+41
1,045+129
916+152
764+51
713+171
542+448
94-96
190-157
347-106
453-33
486—

Similar npm Testing plugins

All 20 @snapvisor/vitest alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@snapvisor/vitest. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.