Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>articulate-mochaNew to Visual Studio Code? Get it now.
articulate-mocha

articulate-mocha

Chris Stead

|
145 installs
| (0) | Free
Test how you talk -- write update Mocha tests faster and easier
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Articulate Mocha

Test Like You Talk

Articulate Mocha is the best way to create tests with Mocha and test like you talk. More often than not, we talk in symbols and "wait, no that other thing." The goal, instead, is to make it easier to think less about the code you have to write and more about the test logic you care about.

Articulate Mocha supports both the BDD and TDD APIs for the Mocha test framework. Start typing and get the best snippet experience you can get for Mocha test authoring.

Articulate Mocha is an accompanying extension to Articulate JS:

https://marketplace.visualstudio.com/items?itemName=cmstead.articulate-js

Installing Articulate JS

  1. Open Visual Studio Code1
  2. Open extension sidebar item
  3. Search for Articulate Mocha
  4. Click install button
  5. Click reload to complete installation (as needed)

Using Articulate JS

Actions

Surround With

Accidentally start writing a test and forget to write your 'it' expression? No worries, we got you.

Highlight the code for your test, right click, and select "surround with" you'll get all the same snippet goodness you're used to with less typing.

Snippets

Nearly all of the Mocha test API is covered in just a few simple snippets. Start typing and you'll get it all:

  • Describe -- Describe/Suite/Context
  • It -- It/Test/Specify
  • Before -- Before/SuiteSetup
  • After -- After/SuiteTeardown
  • BeforeEach -- BeforeEach/Setup
  • AfterEach -- AfterEach/Teardown
  • Pending tests -- It/Test/Specify

Planned Features

  • Toggle Only
  • Toggle Skip
  • Toggle Done Parameter

Version History

v1.0.0

First release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft