File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import exit from 'exit';
1010import throat from 'throat' ;
1111import Worker from 'jest-worker' ;
1212import runTest from './runTest' ;
13- import { WorkerData } from './testWorker' ;
13+ import { worker } from './testWorker' ;
1414import {
1515 OnTestFailure ,
1616 OnTestStart ,
@@ -25,7 +25,7 @@ import {
2525const TEST_WORKER_PATH = require . resolve ( './testWorker' ) ;
2626
2727interface WorkerInterface extends Worker {
28- worker : ( workerData : WorkerData ) => Promise < TestResult . TestResult > ;
28+ worker : typeof worker ;
2929}
3030
3131class TestRunner {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import Runtime from 'jest-runtime';
1515import { ErrorWithCode , TestRunnerContext } from './types' ;
1616import runTest from './runTest' ;
1717
18- export type WorkerData = {
18+ type WorkerData = {
1919 config : Config . ProjectConfig ;
2020 globalConfig : Config . GlobalConfig ;
2121 path : Config . Path ;
You can’t perform that action at this time.
0 commit comments