Skip to content
PluginStats

ES6 Mocha Snippets installs statistics

By Cory Noonan · VS Code Marketplace · Snippets

Shortcuts to reduce the amount of boiler plate you need to type when creating a test file using mocha.

View on VS Code Marketplace Fresh · Oct 21, 2026

ES6 Mocha Snippets has 149,867 recorded installs on VS Code Marketplace, ranking #1857 of 2,502 tracked listings.

Installs
149,867
Official API · Oct 21, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1857
Among tracked VS Code Marketplace listings

Rating: 4.80 / 5 from 5 ratings

About ES6 Mocha Snippets

Build Status

ES6 Mocha Snippets for Visual Studio Code!

Mocha snippets for Visual Studio Code using ES6 syntax. The focus is to keep the code dry leveraging arrow functions and omitting curlies by where possible. The snippets use the Mocha function names for ease of memory that way you don't need to learn new names.

screenshot

Customize the snippets

In your "User Settings" or workspace settings you an configure the snippets to fit your needs. You will need to restart VS Code make them active.

Semicolons

Turn semicolons on or off. Defaults to true.

{
    "mocha-snippets.semicolon": boolean
}
Custom prefix

Use this to add a custom prefix to the snippet. For example if input here 'm-' if you want the snippets to appear when you type m-. Defaults to empty string.

{
    "mocha-snippets.custom-prefix": string
}
Custom Glob Pattern

Use this to add a custom glob pattern that you want this extension to apply to. Example '**/*.spec.ts'. Defaults to empty string.

{
    "mocha-snippets.glob": string
}
Include arrow functions, normal functions, or both

Use this setting to filter which type of functions you want to use in your snippets. Defaults to 'both'.

{
    "mocha-snippets.function-type": 'arrow' | 'function' | 'both'
}
Use single or double quotes

Use this setting to choose the type of quotes you prefer in the snippets that have quotes. Defaults to 'single'.

{
    "mocha-snippets.quote-type": 'single' | 'double'
}

Included Snippet Interfaces

BDD
  • Before (before)
    before(() => );
    
  • Before Named Function (beforeNamed)
    before(function someFunctionName(){ });
    
  • Before With Description (beforeDescription)
    before('some description', () => );
    
  • Before Each (beforeEach)
    beforeEach(() => );
    
  • Before Each Named Function (beforeEachNamed)
    beforeEach(function someFunctionName(){ });
    
  • Before Each With Description (beforeEachDescription)
    beforeEach('some description', () => );
    
  • After (after)
    after(() => );
    
  • After Named Function (afterNamed)
    after(function someFunctionName(){ });
    
  • After With Description (afterDescription)
    after('some description', () => );
    
  • After Each (afterEach)
    afterEach(() => );
    
  • After Each Named Function (afterEachNamed)
    afterEach(function someFunctionName(){ });
    
  • After Each With Description (afterEachDescription)
    afterEach('some description', () => );
    
  • Describe And It (describeAndIt)
    describe('some thing', () => {
        it('can do the thing', () => {
    
        });
    });
    
  • Describe (describe)
    describe('some thing', () => {
    
    });
    
  • It (it)
    it('can do the thing', () => {
    
    });
    
  • Context And It (contextAndIt)
    context('some thing', () => {
        it('can do the thing', () => {
    
        });
    });
    
  • Context (context)
    context('some thing', () => {
    
    });
    
TDD
  • Suite (suite)
    suite('some thing', () => {
    
    });
    
  • Suite Setup (suiteSetup)
    suiteSetup(() => {
    
    });
    
  • Suite Teardown (suiteTeardown)
    suiteTeardown(() => {
    
    });
    
  • Setup (setup)
    setup(() => {
    
    });
    
  • Teardown (teardown)
    teardown(() => {
    
    });
    
  • Teardown (teardown)
    teardown(() => {
    
    });
    
  • Test (test)
    test('the thing', () => {
    
    });
    
  • Entire Suite (entireSuite)
    suite('some thing', () => {
    
        suiteSetup(() => { });
    
        test('some functionality', () => {
    
        });
    
        suiteTeardown(() => { });
    
    });
    
Exports
  • Exports Suite (exportsSuite)
    exports.Foo = {
        'Foobar': {
            'should foo the bar': () => {
    
            },
        }
    };
    

Arrow Functions

Mocha discourage passing arrow functions (more here). If you don't want to pass arrow functions you can use the f prefix on every snippet:

BDD
  • Before Function (fbefore)
    before(function () {});
    
  • Before with Description Function (fbeforeDescription)
    before('', function () {});
    
  • Before Each Function (fbeforeEach)
    beforeEach(function () {});
    
  • Before Each with Description Function (fbeforeEach)
    beforeEach('', function () {});
    
  • After Function (fafter)
    after(function () {});
    
  • After with Description Function (fafterDescription)
    after('', function () {});
    
  • After Each Function (fafterEach)
    afterEach(function () {});
    
  • After Each with Description Function (fafterEach)
    afterEach('', function () {});
    
  • Describe Function (fdescribe)
    describe('', function () {});
    
  • Describe and It Function (fdescribeAndIt)
    describe('', function () {
      it('', function () {});
    });
    ```…
    

Description from the VS Code Marketplace listing.

  • es6
  • javascript
  • javascriptreact
  • mocha
  • typescript
  • typescriptreact

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

ES6 Mocha Snippets installs on VS Code Marketplace, last 90 days: 149,867 installs as of Oct 21, 2026.ES6 Mocha SnippetsInstalls on VS Code Marketplace · Last 90 days149,867installs149.8K149.8K149.8K149.8K149.8K149.9K149.9K149.9KJul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Oct 21, 2026 · 6 observations · Updated Oct…pluginstats.com
ES6 Mocha Snippets installs on VS Code Marketplace, last 90 days: 149,867 installs as of Oct 21, 2026.

7/30/90-day growth

ES6 Mocha Snippets installs growth on VS Code Marketplace: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.ES6 Mocha SnippetsInstalls growth on VS Code Marketplace149,867installs now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 21, 2026pluginstats.com
ES6 Mocha Snippets installs growth on VS Code Marketplace: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

ES6 Mocha Snippets VS Code Marketplace ranking history: currently #1857 (by installs).ES6 Mocha SnippetsVS Code Marketplace ranking · by installs · Last 90 days#1857current rank#1854#1855#1856#1857#1858#1859Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 16, 2026 – Oct 21, 2026 · 6 observations · Updated Oct 21, 2026pluginstats.com
ES6 Mocha Snippets VS Code Marketplace ranking history: currently #1857 (by installs).

Ratings over time

ES6 Mocha Snippets ratings on VS Code Marketplace, last 90 days: 5 ratings as of Oct 21, 2026.ES6 Mocha SnippetsRatings on VS Code Marketplace · Last 90 days5ratings4.44.64.855.25.45.6Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Oct 21, 2026 · 6 observations · Updated Oct…pluginstats.com
ES6 Mocha Snippets ratings on VS Code Marketplace, last 90 days: 5 ratings as of Oct 21, 2026.

Listing placement

All VS Code Marketplace2,502 listings · 126 pages · 1,252 shown · page 93, #17 (overall #1,857)
All VS Code Marketplace: every listing in installs order

Listing placement

Snippets489 listings · 25 pages · page 19, #8 (overall #368)
Snippets: every listing in installs 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. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (6)
Recent installs observations for ES6 Mocha Snippets
Date (UTC)InstallsChange vs. previous
149,867+16
149,851+11
149,840+10
149,830+20
149,810+5
149,805—

Similar VS Code Marketplace Snippets plugins

All 20 ES6 Mocha Snippets alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=spoonscen.es6-mocha-snippets. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.