File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,6 @@ export default (async function runJest({
95
95
onComplete : ( testResults : AggregatedResult ) => any ,
96
96
failedTestsCache : ?FailedTestsCache ,
97
97
} ) {
98
- if ( globalConfig . globalSetup ) {
99
- // $FlowFixMe
100
- await require ( globalConfig . globalSetup ) ( ) ;
101
- }
102
98
const sequencer = new TestSequencer ( ) ;
103
99
let allTests = [ ] ;
104
100
@@ -184,7 +180,10 @@ export default (async function runJest({
184
180
// original value of rootDir. Instead, use the {cwd: Path} property to resolve
185
181
// paths when printing.
186
182
setConfig ( contexts , { cwd : process . cwd ( ) } ) ;
187
-
183
+ if ( globalConfig . globalSetup ) {
184
+ // $FlowFixMe
185
+ await require ( globalConfig . globalSetup ) ( ) ;
186
+ }
188
187
const results = await new TestScheduler ( globalConfig , {
189
188
startRun,
190
189
} ) . scheduleTests ( allTests , testWatcher ) ;
You can’t perform that action at this time.
0 commit comments