@types/karma-mocha
Version:
TypeScript definitions for karma-mocha
36 lines (28 loc) • 1.24 kB
Markdown
# Installation
> `npm install --save @types/karma-mocha`
# Summary
This package contains type definitions for karma-mocha (https://github.com/karma-runner/karma-mocha#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-mocha.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-mocha/index.d.ts)
````ts
import "karma";
declare module "karma" {
interface ClientOptions {
mocha?: MochaClientOptions | undefined;
}
interface MochaClientOptions {
/** This will be exposed in a reporter as `result.mocha.{exportedValue}` */
export?: string[] | undefined;
/** You can set opts to equal true then plugin will load opts from default location 'test/mocha.opts' */
opts?: true | string | undefined;
/** any supported Mocha configuration options */
[key: string]: any;
}
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:38 GMT
* Dependencies: [@types/karma](https://npmjs.com/package/@types/karma)
# Credits
These definitions were written by [Piotr Błażejewicz (Peter Blazejewicz)](https://github.com/peterblazejewicz).