File tree 1 file changed +1
-3
lines changed 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ function parseCommandLine() {
196
196
const sourceMaps = getOptionValue ( '--enable-source-maps' ) ;
197
197
const updateSnapshots = getOptionValue ( '--test-update-snapshots' ) ;
198
198
const watch = getOptionValue ( '--watch' ) ;
199
+ const timeoutPerTest = getOptionValue ( '--test-timeout' ) || Infinity ;
199
200
const isChildProcess = process . env . NODE_TEST_CONTEXT === 'child' ;
200
201
const isChildProcessV8 = process . env . NODE_TEST_CONTEXT === 'child-v8' ;
201
202
let concurrency ;
@@ -211,7 +212,6 @@ function parseCommandLine() {
211
212
let shard ;
212
213
let testNamePatterns = mapPatternFlagToRegExArray ( '--test-name-pattern' ) ;
213
214
let testSkipPatterns = mapPatternFlagToRegExArray ( '--test-skip-pattern' ) ;
214
- let timeoutPerTest ;
215
215
216
216
if ( isChildProcessV8 ) {
217
217
kBuiltinReporters . set ( 'v8-serializer' , 'internal/test_runner/reporter/v8-serializer' ) ;
@@ -242,7 +242,6 @@ function parseCommandLine() {
242
242
243
243
if ( isTestRunner ) {
244
244
isolation = getOptionValue ( '--test-isolation' ) ;
245
- timeoutPerTest = getOptionValue ( '--test-timeout' ) || Infinity ;
246
245
247
246
if ( isolation === 'none' ) {
248
247
concurrency = 1 ;
@@ -271,7 +270,6 @@ function parseCommandLine() {
271
270
} ;
272
271
}
273
272
} else {
274
- timeoutPerTest = getOptionValue ( '--test-timeout' ) || Infinity ;
275
273
concurrency = 1 ;
276
274
const testNamePatternFlag = getOptionValue ( '--test-name-pattern' ) ;
277
275
only = getOptionValue ( '--test-only' ) ;
You can’t perform that action at this time.
0 commit comments