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 · Oct 18, 2026

vitest-plugin-context has 2 recorded weekly downloads on npm, a decrease of 71.4% over the past 30 days, ranking #2290 of 2,322 tracked listings.

Weekly downloads
2
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
-71.4%
-5 weekly downloads
90-day growth
0.0%
0 weekly downloads
Rank
#2290
Among tracked npm listings

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: 2 weekly downloads as of Oct 18, 2026, 0.0% over 90 days.vitest-plugin-contextWeekly downloads on npm · Last 90 days2downloads / week0.0% over 90 days01234567Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vitest-plugin-context weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 18, 2026, 0.0% over 90 days.

7/30/90-day growth

vitest-plugin-context weekly downloads growth on npm: 7-day growth unavailable, -71.4% over 30 days, 0.0% over 90 days.vitest-plugin-contextWeekly downloads growth on npm2downloads / week now7-day growth+2 weekly downloadsInsufficient history30-day growth-5 weekly downloads-71.4%90-day growth+0 weekly downloads0.0%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vitest-plugin-context weekly downloads growth on npm: 7-day growth unavailable, -71.4% over 30 days, 0.0% over 90 days.

Ranking history

vitest-plugin-context npm ranking history: currently #2290 (by weekly downloads).vitest-plugin-contextnpm ranking · by weekly downloads · Last 90 days#2290current rank#600#800#1000#1200#1400#1600#1800#2000#2200#2400Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
vitest-plugin-context npm ranking history: currently #2290 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 115, #14 (overall #2,294)
All npm: every listing in weekly downloads order

Listing placement

Testing21 listings · 2 pages · page 1, #19 (overall #19)
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 (544)
Recent weekly downloads observations for vitest-plugin-context
Date (UTC)Weekly downloadsChange vs. previous
2+2
00
00
00
00
00
00
0-1
10
1-2
30
3-1
4-2
6—

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 Oct 20, 2026. See the methodology.