DefinitelyTyped/types/karma-mocha/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) fca28df8dd
feat(karma-mocha): types for v1.3 (#42371)
- type definition
- tests

Thanks!
2020-02-14 09:35:42 -08:00

23 lines
792 B
TypeScript

// Type definitions for karma-mocha 1.3
// Project: https://github.com/karma-runner/karma-mocha#readme
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.2
import 'karma';
declare module 'karma' {
interface ClientOptions {
mocha?: MochaClientOptions;
}
interface MochaClientOptions {
/** This will be exposed in a reporter as `result.mocha.{exportedValue}` */
export?: string[];
/** You can set opts to equal true then plugin will load opts from default location 'test/mocha.opts' */
opts?: true | string;
/** any supported Mocha configuration options */
[key: string]: any;
}
}