Skip to content

This extension includes the most common mocha snippets. Also compatible with Cypress and similar tools.

License

Notifications You must be signed in to change notification settings

true2fik/mocha-snippets

 
 

Repository files navigation

VS Code Mocha Snippets

This extension includes the most common mocha snippets. Also compatible with Cypress and similar tools.

Installation

In order to install an extension, you need to open the Extensions Palette (Ctrl + Shift + X or Cmd ⌘ + Shift + X). There you have either the option to show the already installed snippets or install new ones.

Supported Languages (file extensions)

  • JavaScript (.js)
  • TypeScript (.ts)
  • JavaScript React (.jsx)
  • TypeScript React (.tsx)

Snippets

Mocha Snippets

Snippet Code
describe describe("", () => {

});
context context("", () => {

});
specify specify("", () => {

});
it it("should", () => {

});
before before(() => {

});
beforeNamed before("", () => {

});
beforeEach beforeEach(() => {

});
beforeEachNamed beforeEach("", () => {

});
after after(() => {

});
afterNamed after("", () => {

});
afterEach afterEach(() => {

});
afterEachNamed afterEach("", () => {

});

⬆ Back to top

Change Log

See the CHANGELOG for details about the changes in each version.

License

MIT

About

This extension includes the most common mocha snippets. Also compatible with Cypress and similar tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published