@@ -209,8 +209,6 @@ func (r *CompilerBaselineRunner) runSingleConfigTest(t *testing.T, testName stri
209209 compilerTest .verifySourceMapRecord (t , r .testSuitName , r .isSubmodule )
210210 compilerTest .verifyTypesAndSymbols (t , r .testSuitName , r .isSubmodule )
211211 compilerTest .verifyModuleResolution (t , r .testSuitName , r .isSubmodule )
212- // !!! Verify all baselines
213-
214212 compilerTest .verifyUnionOrdering (t )
215213 compilerTest .verifyParentPointers (t )
216214}
@@ -368,9 +366,8 @@ func (c *compilerTest) verifyDiagnostics(t *testing.T, suiteName string, isSubmo
368366 defer testutil .RecoverAndFail (t , "Panic on creating error baseline for test " + c .filename )
369367 files := core .Concatenate (c .tsConfigFiles , core .Concatenate (c .toBeCompiled , c .otherFiles ))
370368 tsbaseline .DoErrorBaseline (t , c .configuredName , files , c .result .Diagnostics , c .result .Options .Pretty .IsTrue (), baseline.Options {
371- Subfolder : suiteName ,
372- IsSubmodule : isSubmodule ,
373- IsSubmoduleAccepted : c .containsUnsupportedOptionsForDiagnostics (),
369+ Subfolder : suiteName ,
370+ IsSubmodule : isSubmodule ,
374371 DiffFixupOld : func (old string ) string {
375372 var sb strings.Builder
376373 sb .Grow (len (old ))
@@ -410,11 +407,6 @@ func (c *compilerTest) verifyJavaScriptOutput(t *testing.T, suiteName string, is
410407 return
411408 }
412409
413- if c .options .OutFile != "" {
414- // Just return, no t.Skip; this is unsupported so testing them is not helpful.
415- return
416- }
417-
418410 t .Run ("output" , func (t * testing.T ) {
419411 if msg , ok := skippedEmitTests [c .basename ]; ok {
420412 t .Skip (msg )
@@ -442,11 +434,6 @@ func (c *compilerTest) verifyJavaScriptOutput(t *testing.T, suiteName string, is
442434}
443435
444436func (c * compilerTest ) verifySourceMapOutput (t * testing.T , suiteName string , isSubmodule bool ) {
445- if c .options .OutFile != "" {
446- // Just return, no t.Skip; this is unsupported so testing them is not helpful.
447- return
448- }
449-
450437 t .Run ("sourcemap" , func (t * testing.T ) {
451438 defer testutil .RecoverAndFail (t , "Panic on creating source map output for test " + c .filename )
452439 headerComponents := tspath .GetPathComponentsRelativeTo (repo .TestDataPath , c .filename , tspath.ComparePathsOptions {})
@@ -467,11 +454,6 @@ func (c *compilerTest) verifySourceMapOutput(t *testing.T, suiteName string, isS
467454}
468455
469456func (c * compilerTest ) verifySourceMapRecord (t * testing.T , suiteName string , isSubmodule bool ) {
470- if c .options .OutFile != "" {
471- // Just return, no t.Skip; this is unsupported so testing them is not helpful.
472- return
473- }
474-
475457 t .Run ("sourcemap record" , func (t * testing.T ) {
476458 defer testutil .RecoverAndFail (t , "Panic on creating source map record for test " + c .filename )
477459 headerComponents := tspath .GetPathComponentsRelativeTo (repo .TestDataPath , c .filename , tspath.ComparePathsOptions {})
@@ -601,17 +583,3 @@ func (c *compilerTest) verifyParentPointers(t *testing.T) {
601583 }
602584 })
603585}
604-
605- func (c * compilerTest ) containsUnsupportedOptionsForDiagnostics () bool {
606- if len (c .result .Program .UnsupportedExtensions ()) != 0 {
607- return true
608- }
609- if c .options .BaseUrl != "" {
610- return true
611- }
612- if c .options .OutFile != "" {
613- return true
614- }
615-
616- return false
617- }
0 commit comments