@@ -197,19 +197,19 @@ function parseCommandLine() {
197
197
const forceExit = getOptionValue ( '--test-force-exit' ) ;
198
198
const sourceMaps = getOptionValue ( '--enable-source-maps' ) ;
199
199
const updateSnapshots = getOptionValue ( '--test-update-snapshots' ) ;
200
- const watchMode = getOptionValue ( '--watch' ) ;
200
+ const watch = getOptionValue ( '--watch' ) ;
201
201
const isChildProcess = process . env . NODE_TEST_CONTEXT === 'child' ;
202
202
const isChildProcessV8 = process . env . NODE_TEST_CONTEXT === 'child-v8' ;
203
+ let concurrency ;
203
204
let coverageExcludeGlobs ;
204
205
let coverageIncludeGlobs ;
205
206
let destinations ;
206
- let perFileTimeout ;
207
+ let only ;
207
208
let reporters ;
208
- let runnerConcurrency ;
209
+ let shard ;
209
210
let testNamePatterns ;
210
211
let testSkipPatterns ;
211
- let testOnlyFlag ;
212
- let shard ;
212
+ let timeout ;
213
213
214
214
if ( isChildProcessV8 ) {
215
215
kBuiltinReporters . set ( 'v8-serializer' , 'internal/test_runner/reporter/v8-serializer' ) ;
@@ -239,9 +239,9 @@ function parseCommandLine() {
239
239
}
240
240
241
241
if ( isTestRunner ) {
242
- perFileTimeout = getOptionValue ( '--test-timeout' ) || Infinity ;
243
- runnerConcurrency = getOptionValue ( '--test-concurrency' ) || true ;
244
- testOnlyFlag = false ;
242
+ timeout = getOptionValue ( '--test-timeout' ) || Infinity ;
243
+ concurrency = getOptionValue ( '--test-concurrency' ) || true ;
244
+ only = false ;
245
245
testNamePatterns = null ;
246
246
247
247
const shardOption = getOptionValue ( '--test-shard' ) ;
@@ -262,10 +262,10 @@ function parseCommandLine() {
262
262
} ;
263
263
}
264
264
} else {
265
- perFileTimeout = Infinity ;
266
- runnerConcurrency = 1 ;
265
+ timeout = Infinity ;
266
+ concurrency = 1 ;
267
267
const testNamePatternFlag = getOptionValue ( '--test-name-pattern' ) ;
268
- testOnlyFlag = getOptionValue ( '--test-only' ) ;
268
+ only = getOptionValue ( '--test-only' ) ;
269
269
testNamePatterns = testNamePatternFlag ?. length > 0 ?
270
270
ArrayPrototypeMap (
271
271
testNamePatternFlag ,
@@ -284,21 +284,21 @@ function parseCommandLine() {
284
284
globalTestOptions = {
285
285
__proto__ : null ,
286
286
isTestRunner,
287
+ concurrency,
287
288
coverage,
288
289
coverageExcludeGlobs,
289
290
coverageIncludeGlobs,
291
+ destinations,
290
292
forceExit,
291
- perFileTimeout ,
292
- runnerConcurrency ,
293
+ only ,
294
+ reporters ,
293
295
shard,
294
296
sourceMaps,
295
- testOnlyFlag,
296
297
testNamePatterns,
297
298
testSkipPatterns,
299
+ timeout,
298
300
updateSnapshots,
299
- reporters,
300
- destinations,
301
- watchMode,
301
+ watch,
302
302
} ;
303
303
304
304
return globalTestOptions ;
0 commit comments