Skip to content
PluginStats

vitest-plugin-context weekly downloads statistics

By OutOfOrder (3 listings) · npm · Testing

Exposes a context alias for describe to vitest.

View on npm Fresh · Dec 6, 2026

vitest-plugin-context has 9 recorded weekly downloads on npm, an increase of 28.6% over the past 30 days, ranking #3162 of 3,247 tracked listings.

Weekly downloads
9
Official API · Dec 5, 2026
7-day growth
0.0%
0 weekly downloads
30-day growth
+28.6%
+2 weekly downloads
90-day growth
+350%
+7 weekly downloads
Rank
#3162
▼ 168 in 7 days

About vitest-plugin-context

vitest-plugin-context

npm npm npm

Adds context as an alternative to describe for vitest

Getting Started

Install vitest-plugin-context using yarn:

yarn add --dev vitest-plugins
yarn add --dev vitest-plugin-context

Motivation

RSpec took the ruby world by storm with its declarative method of TDD. In RSpec, describe it used to wrap a set of tests against one functionality while context is to wrap a set of tests against one functionality under the same state.

The difference being you should only describe to test the User model and specifically describe the #name method. However, testing different states of the #name method should use different context. You can view an example of this below.

Usage

If you want, you can import context from vitest-plugin-context at the top of every test:

import { context } from 'vitest-plugin-context';

If you want to install context as a global, you can modify the test section of your vitest.config.js to include:

{
    test: {
        setupFiles: [
            "vitest-plugin-context/setup",
        ]
    }
}

Example

Here's an example test that uses context and set:

import { describe, it, expect } from 'vitest';
import { set } from 'vitest-plugin-set';
import { context } from 'vitest-plugin-context';

import User from '../user';

describe('User', () => {

  describe('#name', () => {
    set('firstName', () => 'Harry');
    set('lastName', () => 'Potter');
    set('user', () => new User({firstName, lastName}));

    context('with blank first name', () => {
      set('firstName', () => null);

      it('should return only the last name', () => {
        expect(user.name).toEqual('Potter');
      });
    });

    context('with blank last name', () => {
      set('lastName', () => null);

      it('should return only the first name', () => {
        expect(user.name).toEqual('Harry');
      });
    });
  });
});

Description from the npm listing.

  • context
  • vitest
  • vitest-plugin
  • plugin
  • test

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

vitest-plugin-context weekly downloads on npm, last 90 days: 9 weekly downloads as of Dec 5, 2026, +350% over 90 days.vitest-plugin-contextWeekly downloads on npm · Last 90 days9downloads / week+350% over 90 days024681012Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vitest-plugin-context weekly downloads on npm, last 90 days: 9 weekly downloads as of Dec 5, 2026, +350% over 90 days.

7/30/90-day growth

vitest-plugin-context weekly downloads growth on npm: 0.0% over 7 days, +28.6% over 30 days, +350% over 90 days.vitest-plugin-contextWeekly downloads growth on npm9downloads / week now7-day growth+0 weekly downloads0.0%30-day growth+2 weekly downloads+28.6%90-day growth+7 weekly downloads+350%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vitest-plugin-context weekly downloads growth on npm: 0.0% over 7 days, +28.6% over 30 days, +350% over 90 days.

Ranking history

vitest-plugin-context npm ranking history: currently #3162 (by weekly downloads).vitest-plugin-contextnpm ranking · by weekly downloads · Last 90 days#3162current rank#500#1000#1500#2000#2500#3000#3500Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vitest-plugin-context npm ranking history: currently #3162 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 159, #4 (overall #3,164)
All npm: every listing in weekly downloads order

Listing placement

Testing26 listings · 2 pages · page 2, #3 (overall #23)
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 (592)
Recent weekly downloads observations for vitest-plugin-context
Date (UTC)Weekly downloadsChange vs. previous
9-1
10-1
11+3
8+3
50
5-1
6-3
9+1
8-1
9-1
10+1
9+1
80
8—

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/vitest-plugin-context. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.