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
- Open Visual Studio Code1
- Open extension sidebar item
- Search for
Articulate Mocha
- Click install button
- Click reload to complete installation (as needed)
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.
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
- Toggle Only
- Toggle Skip
- Toggle Done Parameter
v1.0.0
First release