UNPKG

1.24 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/karma-mocha`
3
4# Summary
5This package contains type definitions for karma-mocha (https://github.com/karma-runner/karma-mocha#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-mocha.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-mocha/index.d.ts)
10````ts
11import "karma";
12
13declare module "karma" {
14 interface ClientOptions {
15 mocha?: MochaClientOptions | undefined;
16 }
17
18 interface MochaClientOptions {
19 /** This will be exposed in a reporter as `result.mocha.{exportedValue}` */
20 export?: string[] | undefined;
21 /** You can set opts to equal true then plugin will load opts from default location 'test/mocha.opts' */
22 opts?: true | string | undefined;
23 /** any supported Mocha configuration options */
24 [key: string]: any;
25 }
26}
27
28````
29
30### Additional Details
31 * Last updated: Tue, 07 Nov 2023 09:09:38 GMT
32 * Dependencies: [@types/karma](https://npmjs.com/package/@types/karma)
33
34# Credits
35These definitions were written by [Piotr Błażejewicz (Peter Blazejewicz)](https://github.com/peterblazejewicz).
36
\No newline at end of file