diff --git a/src/testRunner/compilerRunner.ts b/src/testRunner/compilerRunner.ts index acd9fc75611..8d4c0b1547c 100644 --- a/src/testRunner/compilerRunner.ts +++ b/src/testRunner/compilerRunner.ts @@ -331,10 +331,6 @@ class CompilerTest { } public verifyTypesAndSymbols() { - if (this.fileName.includes("APISample")) { - return; - } - const noTypesAndSymbols = this.harnessSettings.noTypesAndSymbols && this.harnessSettings.noTypesAndSymbols.toLowerCase() === "true"; if (noTypesAndSymbols) { diff --git a/tests/baselines/reference/APILibCheck.symbols b/tests/baselines/reference/APILibCheck.symbols deleted file mode 100644 index e17d57d72f1..00000000000 --- a/tests/baselines/reference/APILibCheck.symbols +++ /dev/null @@ -1,15 +0,0 @@ -//// [tests/cases/compiler/APILibCheck.ts] //// - -=== index.ts === -import ts = require("typescript"); ->ts : Symbol(ts, Decl(index.ts, 0, 0)) - -import tsInternal = require("typescript-internal"); ->tsInternal : Symbol(tsInternal, Decl(index.ts, 0, 34)) - -import tsserverlibrary = require("tsserverlibrary"); ->tsserverlibrary : Symbol(tsserverlibrary, Decl(index.ts, 1, 51)) - -import tsserverlibraryInternal = require("tsserverlibrary-internal"); ->tsserverlibraryInternal : Symbol(tsserverlibraryInternal, Decl(index.ts, 2, 52)) - diff --git a/tests/baselines/reference/APILibCheck.types b/tests/baselines/reference/APILibCheck.types deleted file mode 100644 index 0e13955f819..00000000000 --- a/tests/baselines/reference/APILibCheck.types +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/APILibCheck.ts] //// - -=== Performance Stats === -Identity cache: 100 / 100 (nearest 100) -Assignability cache: 9,300 / 9,300 (nearest 100) -Type Count: 22,500 / 22,500 (nearest 100) -Instantiation count: 7,000 / 7,000 (nearest 500) -Symbol count: 58,500 / 58,500 (nearest 500) - -=== index.ts === -import ts = require("typescript"); ->ts : typeof ts - -import tsInternal = require("typescript-internal"); ->tsInternal : typeof tsInternal - -import tsserverlibrary = require("tsserverlibrary"); ->tsserverlibrary : typeof ts - -import tsserverlibraryInternal = require("tsserverlibrary-internal"); ->tsserverlibraryInternal : typeof tsInternal - diff --git a/tests/cases/compiler/APILibCheck.ts b/tests/cases/compiler/APILibCheck.ts index 38821a58b0b..7abf10e9821 100644 --- a/tests/cases/compiler/APILibCheck.ts +++ b/tests/cases/compiler/APILibCheck.ts @@ -3,6 +3,7 @@ // @strictNullChecks: true // @lib: es2018 // @exactOptionalPropertyTypes: true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_Watch.ts b/tests/cases/compiler/APISample_Watch.ts index fccc4137564..42b1fef4c4a 100644 --- a/tests/cases/compiler/APISample_Watch.ts +++ b/tests/cases/compiler/APISample_Watch.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_WatchWithDefaults.ts b/tests/cases/compiler/APISample_WatchWithDefaults.ts index 7efada18dba..6e18316d224 100644 --- a/tests/cases/compiler/APISample_WatchWithDefaults.ts +++ b/tests/cases/compiler/APISample_WatchWithDefaults.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts b/tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts index 794be55855d..f51929c0961 100644 --- a/tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts +++ b/tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_compile.ts b/tests/cases/compiler/APISample_compile.ts index ed5d5723f3c..a4b89818b6d 100644 --- a/tests/cases/compiler/APISample_compile.ts +++ b/tests/cases/compiler/APISample_compile.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_jsdoc.ts b/tests/cases/compiler/APISample_jsdoc.ts index d166e435feb..b2f39259cb3 100644 --- a/tests/cases/compiler/APISample_jsdoc.ts +++ b/tests/cases/compiler/APISample_jsdoc.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_linter.ts b/tests/cases/compiler/APISample_linter.ts index 7d485e4d85f..5a8158c2669 100644 --- a/tests/cases/compiler/APISample_linter.ts +++ b/tests/cases/compiler/APISample_linter.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_parseConfig.ts b/tests/cases/compiler/APISample_parseConfig.ts index a4bcbc4aea8..19e62025ed8 100644 --- a/tests/cases/compiler/APISample_parseConfig.ts +++ b/tests/cases/compiler/APISample_parseConfig.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_transform.ts b/tests/cases/compiler/APISample_transform.ts index b2e001071bb..e440a0bf7b2 100644 --- a/tests/cases/compiler/APISample_transform.ts +++ b/tests/cases/compiler/APISample_transform.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json { diff --git a/tests/cases/compiler/APISample_watcher.ts b/tests/cases/compiler/APISample_watcher.ts index 824b083b6be..bd8cbb863a4 100644 --- a/tests/cases/compiler/APISample_watcher.ts +++ b/tests/cases/compiler/APISample_watcher.ts @@ -2,6 +2,7 @@ // @skipLibCheck: true // @noImplicitAny:true // @strictNullChecks:true +// @noTypesAndSymbols: true // @filename: node_modules/typescript/package.json {