Skip to content

TypeScript definitions for mocha without globals

Notifications You must be signed in to change notification settings

wclr/mocha-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

@types/mocha

without globals

This is just official version of @types/mocha package with globals stripped away.

Install

Just install/add it from the github repo (instead of @types/mocha from NPM):

yarn/pnpm add github:whitecolor/mocha-types

And enjoy.

import { describe, it, beforeEach, after } from "mocha";

// without explicit import typescript will show errors
describe("Some test", () => {
  it("should work", () => {});
});

About

TypeScript definitions for mocha without globals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published