@@ -430,7 +430,7 @@ const generateCodeCoverage = () => exec("istanbul", ["cover", "node_modules/moch
430430task ( "generate-code-coverage" , series ( preBuild , buildTests , generateCodeCoverage ) ) ;
431431task ( "generate-code-coverage" ) . description = "Generates code coverage data via istanbul" ;
432432
433- const preTest = parallel ( buildTests , buildServices , buildLssl ) ;
433+ const preTest = parallel ( buildTsc , buildTests , buildServices , buildLssl ) ;
434434preTest . displayName = "preTest" ;
435435
436436const postTest = ( done ) => cmdLineOptions . lint ? lint ( done ) : done ( ) ;
@@ -456,7 +456,7 @@ task("runtests").flags = {
456456 " --shardId" : "1-based ID of this shard (default: 1)" ,
457457} ;
458458
459- const runTestsParallel = ( ) => runConsoleTests ( "built/local/run.js" , "min" , /*runInParallel*/ true , /*watchMode*/ false ) ;
459+ const runTestsParallel = ( ) => runConsoleTests ( "built/local/run.js" , "min" , /*runInParallel*/ cmdLineOptions . workers > 1 , /*watchMode*/ false ) ;
460460task ( "runtests-parallel" , series ( preBuild , preTest , runTestsParallel , postTest ) ) ;
461461task ( "runtests-parallel" ) . description = "Runs all the tests in parallel using the built run.js file." ;
462462task ( "runtests-parallel" ) . flags = {
@@ -472,6 +472,11 @@ task("runtests-parallel").flags = {
472472 " --shardId" : "1-based ID of this shard (default: 1)" ,
473473} ;
474474
475+
476+ task ( "test-browser-integration" , ( ) => exec ( process . execPath , [ "scripts/browserIntegrationTest.js" ] ) ) ;
477+ task ( "test-browser-integration" ) . description = "Runs scripts/browserIntegrationTest.ts which tests that typescript.js loads in a browser" ;
478+
479+
475480task ( "diff" , ( ) => exec ( getDiffTool ( ) , [ refBaseline , localBaseline ] , { ignoreExitCode : true , waitForExit : false } ) ) ;
476481task ( "diff" ) . description = "Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable" ;
477482
0 commit comments