Skip to content

Commit

Permalink
chore: type TestScheduler's testRunners object (#9804)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder committed Apr 13, 2020
1 parent c830517 commit 99c6fb1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jest-core/src/TestScheduler.ts
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions packages/jest-runner/src/index.ts
Expand Up @@ -44,6 +44,7 @@ namespace TestRunner {
class TestRunner {
private _globalConfig: Config.GlobalConfig;
private _context: JestTestRunnerContext;
readonly isSerial?: boolean;

constructor(
globalConfig: Config.GlobalConfig,
Expand Down
1 change: 0 additions & 1 deletion packages/jest-runner/src/types.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 99c6fb1

Please sign in to comment.