diff --git a/packages/jest-core/src/TestScheduler.ts b/packages/jest-core/src/TestScheduler.ts index 3211459f2148..41b40e18955f 100644 --- a/packages/jest-core/src/TestScheduler.ts +++ b/packages/jest-core/src/TestScheduler.ts @@ -175,7 +175,7 @@ export default class TestScheduler { showStatus: !runInBand, }); - const testRunners = Object.create(null); + const testRunners: {[key: string]: TestRunner} = Object.create(null); contexts.forEach(({config}) => { if (!testRunners[config.runner]) { const Runner: typeof TestRunner = require(config.runner); diff --git a/packages/jest-runner/src/index.ts b/packages/jest-runner/src/index.ts index 9969492ad738..518c07ad8f03 100644 --- a/packages/jest-runner/src/index.ts +++ b/packages/jest-runner/src/index.ts @@ -44,6 +44,7 @@ namespace TestRunner { class TestRunner { private _globalConfig: Config.GlobalConfig; private _context: JestTestRunnerContext; + readonly isSerial?: boolean; constructor( globalConfig: Config.GlobalConfig, diff --git a/packages/jest-runner/src/types.ts b/packages/jest-runner/src/types.ts index 08525df5e514..c45b44d32677 100644 --- a/packages/jest-runner/src/types.ts +++ b/packages/jest-runner/src/types.ts @@ -63,7 +63,6 @@ export type WatcherState = { }; export interface TestWatcher extends EventEmitter { state: WatcherState; - new ({isWatchMode}: {isWatchMode: boolean}): TestWatcher; setState(state: WatcherState): void; isInterrupted(): boolean; isWatchMode(): boolean;