# mocha-types **Repository Path**: pmpleader/mocha-types ## Basic Information - **Project Name**: mocha-types - **Description**: 开源分享,用于编译; - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-22 - **Last Updated**: 2023-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @types/mocha > without globals This is just official version of `@types/mocha` package with [`globals`](https://github.com/mochajs/mocha/issues/956) 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. ```ts import { describe, it, beforeEach, after } from "mocha"; // without explicit import typescript will show errors describe("Some test", () => { it("should work", () => {}); }); ```