mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
mocha: reporter() method takes optional second parameter (#23026)
This commit is contained in:
4
types/mocha/index.d.ts
vendored
4
types/mocha/index.d.ts
vendored
@@ -86,9 +86,9 @@ declare class Mocha {
|
||||
bail(value?: boolean): Mocha;
|
||||
addFile(file: string): Mocha;
|
||||
/** Sets reporter by name, defaults to "spec". */
|
||||
reporter(name: string): Mocha;
|
||||
reporter(name: string, reporterOptions?: any): Mocha;
|
||||
/** Sets reporter constructor, defaults to mocha.reporters.Spec. */
|
||||
reporter(reporter: ReporterConstructor): Mocha;
|
||||
reporter(reporter: ReporterConstructor, reporterOptions?: any): Mocha;
|
||||
ui(value: string): Mocha;
|
||||
grep(value: string): Mocha;
|
||||
grep(value: RegExp): Mocha;
|
||||
|
||||
Reference in New Issue
Block a user