without globals
This is just official version of @types/mocha
package with globals
stripped away.
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", () => {});
});