File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,16 @@ export default function createRunner<
68
68
) ;
69
69
}
70
70
71
- _createInBandTestRun (
71
+ async _createInBandTestRun (
72
72
tests : Array < Test > ,
73
73
watcher : TestWatcher ,
74
74
onStart : OnTestStart ,
75
75
onResult : OnTestSuccess ,
76
76
onFailure : OnTestFailure ,
77
77
options : TestRunnerOptions ,
78
78
) : Promise < void > {
79
+ const runner = ( await import ( runPath ) ) . default ;
80
+
79
81
const mutex = pLimit ( 1 ) ;
80
82
return tests . reduce (
81
83
( promise , test ) =>
@@ -87,8 +89,6 @@ export default function createRunner<
87
89
}
88
90
89
91
return onStart ( test ) . then ( ( ) => {
90
- // eslint-disable-next-line import/no-dynamic-require, global-require, @typescript-eslint/no-var-requires
91
- const runner = require ( runPath ) ;
92
92
const baseOptions = {
93
93
config : test . context . config ,
94
94
globalConfig : this . #globalConfig,
You can’t perform that action at this time.
0 commit comments