diff --git a/src/testRunner/compilerRunner.ts b/src/testRunner/compilerRunner.ts index acd9fc75611c5..8d4c0b1547c4e 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 e17d57d72f16a..0000000000000 --- 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 0e13955f8192b..0000000000000 --- 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 38821a58b0b76..7abf10e9821e9 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 fccc413756468..42b1fef4c4a0b 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 7efada18dbad7..6e18316d2244d 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 794be55855d83..f51929c0961a7 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 ed5d5723f3c0a..a4b89818b6db1 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 d166e435feb15..b2f39259cb32e 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 7d485e4d85ff1..5a8158c26699f 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 a4bcbc4aea8c5..19e62025ed851 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 b2e001071bb1a..e440a0bf7b243 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 824b083b6be66..bd8cbb863a4f9 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 {