Use noTypesAndSymbols for API tests (#57799)

This commit is contained in:
Jake Bailey 2024-03-15 18:39:45 -07:00 committed by GitHub
parent 0a671aa393
commit 756c0c3aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 10 additions and 41 deletions

View File

@ -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) {

View File

@ -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))

View File

@ -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

View File

@ -3,6 +3,7 @@
// @strictNullChecks: true
// @lib: es2018
// @exactOptionalPropertyTypes: true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{

View File

@ -2,6 +2,7 @@
// @skipLibCheck: true
// @noImplicitAny:true
// @strictNullChecks:true
// @noTypesAndSymbols: true
// @filename: node_modules/typescript/package.json
{