mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Use noTypesAndSymbols for API tests (#57799)
This commit is contained in:
parent
0a671aa393
commit
756c0c3aa2
@ -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) {
|
||||
|
||||
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
// @strictNullChecks: true
|
||||
// @lib: es2018
|
||||
// @exactOptionalPropertyTypes: true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
// @skipLibCheck: true
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
// @noTypesAndSymbols: true
|
||||
|
||||
// @filename: node_modules/typescript/package.json
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user