@@ -151,6 +151,7 @@ const es2018LibrarySourceMap = es2018LibrarySource.map(source =>
151151
152152const esnextLibrarySource = [
153153 "esnext.asynciterable.d.ts" ,
154+ "esnext.array.d.ts" ,
154155 "esnext.promise.d.ts"
155156] ;
156157
@@ -680,14 +681,14 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
680681 workerCount = cmdLineOptions . workers ;
681682 }
682683
683- if ( tests || runners || light || taskConfigsFolder ) {
684- writeTestConfigFile ( tests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit ) ;
685- }
686-
687684 if ( tests && tests . toLocaleLowerCase ( ) === "rwc" ) {
688685 testTimeout = 400000 ;
689686 }
690687
688+ if ( tests || runners || light || testTimeout || taskConfigsFolder ) {
689+ writeTestConfigFile ( tests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , testTimeout ) ;
690+ }
691+
691692 const colors = cmdLineOptions . colors ;
692693 const reporter = cmdLineOptions . reporter || defaultReporter ;
693694
@@ -872,8 +873,17 @@ function cleanTestDirs(done: (e?: any) => void) {
872873}
873874
874875// used to pass data from jake command line directly to run.js
875- function writeTestConfigFile ( tests : string , runners : string , light : boolean , taskConfigsFolder ?: string , workerCount ?: number , stackTraceLimit ?: string ) {
876- const testConfigContents = JSON . stringify ( { test : tests ? [ tests ] : undefined , runner : runners ? runners . split ( "," ) : undefined , light, workerCount, stackTraceLimit, taskConfigsFolder, noColor : ! cmdLineOptions . colors } ) ;
876+ function writeTestConfigFile ( tests : string , runners : string , light : boolean , taskConfigsFolder ?: string , workerCount ?: number , stackTraceLimit ?: string , timeout ?: number ) {
877+ const testConfigContents = JSON . stringify ( {
878+ test : tests ? [ tests ] : undefined ,
879+ runner : runners ? runners . split ( "," ) : undefined ,
880+ light,
881+ workerCount,
882+ stackTraceLimit,
883+ taskConfigsFolder,
884+ noColor : ! cmdLineOptions . colors ,
885+ timeout,
886+ } ) ;
877887 console . log ( "Running tests with config: " + testConfigContents ) ;
878888 fs . writeFileSync ( "test.config" , testConfigContents ) ;
879889}
0 commit comments