From 4478031e2fbc4ed9cafbe27ea4eb28f787cca00c Mon Sep 17 00:00:00 2001 From: Dmitrii Sorin Date: Thu, 19 Apr 2018 08:33:38 +1000 Subject: [PATCH] IRunner should be an instance of EventEmitter (#24971) * IRunner extends EventEmitter https://github.com/mochajs/mocha/blob/master/lib/runner.js#L97 * Update index.d.ts --- types/mocha/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/mocha/index.d.ts b/types/mocha/index.d.ts index 7817e205c3..b99fa24ab2 100644 --- a/types/mocha/index.d.ts +++ b/types/mocha/index.d.ts @@ -1,13 +1,16 @@ -// Type definitions for mocha 5.0 +// Type definitions for mocha 5.1 // Project: http://mochajs.org/ // Definitions by: Kazi Manzur Rashid // otiai10 // jt000 // Vadim Macagon // Andrew Bradley +// Dmitrii Sorin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 +/// + interface MochaSetupOptions { // milliseconds to wait before considering a test slow slow?: number; @@ -201,7 +204,7 @@ declare namespace Mocha { } /** Partial interface for Mocha's `Runner` class. */ - interface IRunner { + interface IRunner extends NodeJS.EventEmitter { stats?: IStats; started: boolean; suite: ISuite;