@@ -39,8 +39,8 @@ namespace RWC {
3939 const baseName = ts . getBaseFileName ( jsonPath ) ;
4040 let currentDirectory : string ;
4141 let useCustomLibraryFile : boolean ;
42- let skipTypeAndSymbolbaselines = false ;
43- const typeAndSymbolSizeLimit = 10000000 ;
42+ let skipTypeBaselines = false ;
43+ const typeSizeLimit = 10000000 ;
4444 after ( ( ) => {
4545 // Mocha holds onto the closure environment of the describe callback even after the test is done.
4646 // Therefore we have to clean out large objects after the test is done.
@@ -54,7 +54,7 @@ namespace RWC {
5454 // or to use lib.d.ts inside the json object. If the flag is true, use the lib.d.ts inside json file
5555 // otherwise use the lib.d.ts from built/local
5656 useCustomLibraryFile = undefined ;
57- skipTypeAndSymbolbaselines = false ;
57+ skipTypeBaselines = false ;
5858 } ) ;
5959
6060 it ( "can compile" , function ( this : Mocha . ITestCallbackContext ) {
@@ -64,7 +64,7 @@ namespace RWC {
6464 const ioLog : IOLog = Playback . newStyleLogIntoOldStyleLog ( JSON . parse ( Harness . IO . readFile ( `internal/cases/rwc/${ jsonPath } /test.json` ) ) , Harness . IO , `internal/cases/rwc/${ baseName } ` ) ;
6565 currentDirectory = ioLog . currentDirectory ;
6666 useCustomLibraryFile = ioLog . useCustomLibraryFile ;
67- skipTypeAndSymbolbaselines = ioLog . filesRead . reduce ( ( acc , elem ) => ( elem && elem . result && elem . result . contents ) ? acc + elem . result . contents . length : acc , 0 ) > typeAndSymbolSizeLimit ;
67+ skipTypeBaselines = ioLog . filesRead . reduce ( ( acc , elem ) => ( elem && elem . result && elem . result . contents ) ? acc + elem . result . contents . length : acc , 0 ) > typeSizeLimit ;
6868 runWithIOLog ( ioLog , ( ) => {
6969 opts = ts . parseCommandLine ( ioLog . arguments , fileName => Harness . IO . readFile ( fileName ) ) ;
7070 assert . equal ( opts . errors . length , 0 ) ;
@@ -224,7 +224,7 @@ namespace RWC {
224224 Harness . Compiler . doTypeAndSymbolBaseline ( baseName , compilerResult . program , inputFiles
225225 . concat ( otherFiles )
226226 . filter ( file => ! ! compilerResult . program . getSourceFile ( file . unitName ) )
227- . filter ( e => ! Harness . isDefaultLibraryFile ( e . unitName ) ) , baselineOpts , /*multifile*/ true , skipTypeAndSymbolbaselines ) ;
227+ . filter ( e => ! Harness . isDefaultLibraryFile ( e . unitName ) ) , baselineOpts , /*multifile*/ true , skipTypeBaselines , /*skipSymbolbaselines*/ true ) ;
228228 } ) ;
229229
230230 // Ideally, a generated declaration file will have no errors. But we allow generated
0 commit comments