Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @types/mocha with all npm packages installed. Try it out:

var mocha = require("@types/mocha")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@types/mocha v8.0.1

TypeScript definitions for mocha


npm install --save @types/mocha


This package contains type definitions for mocha (


Files were exported from

Additional Details

  • Last updated: Fri, 31 Jul 2020 20:41:28 GMT
  • Dependencies: none
  • Global values: Mocha, after, afterEach, before, beforeEach, context, describe, it, mocha, run, setup, specify, suite, suiteSetup, suiteTeardown, teardown, test, xcontext, xdescribe, xit, xspecify


These definitions were written by Kazi Manzur Rashid, otiai10, jt000, Vadim Macagon, Andrew Bradley, and Dmitrii Sorin.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free