mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
Add skip lib check to many tests (#18935)
* Add skip lib check to many tests, do not include unit test duration in profiler duration * Add a few more skipLibCheck flags * A few more * Add more skip lib check flags
This commit is contained in:
@@ -12,6 +12,11 @@ namespace Harness.Parallel.Worker {
|
||||
testList.length = 0;
|
||||
}
|
||||
reportedUnitTests = true;
|
||||
if (testList.length) {
|
||||
// Execute unit tests
|
||||
testList.forEach(({ name, callback, kind }) => executeCallback(name, callback, kind));
|
||||
testList.length = 0;
|
||||
}
|
||||
const start = +(new Date());
|
||||
runner.initializeTests();
|
||||
testList.forEach(({ name, callback, kind }) => executeCallback(name, callback, kind));
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @includebuiltfile: typescript_standalone.d.ts
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @includebuiltfile: typescript_standalone.d.ts
|
||||
// @strict:true
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @includebuiltfile: typescript_standalone.d.ts
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @includebuiltfile: typescript_standalone.d.ts
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @includebuiltfile: typescript_standalone.d.ts
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @includebuiltfile: typescript_standalone.d.ts
|
||||
// @noImplicitAny:true
|
||||
// @strictNullChecks:true
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @noEmit: true
|
||||
// @allowJs: true
|
||||
// @checkJs: true
|
||||
// @skipLibCheck: true
|
||||
// @lib: es2017, dom
|
||||
// @Filename: foo.js
|
||||
// Repro for #16585
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// @skipLibCheck: true
|
||||
// @lib: dom, es7
|
||||
|
||||
interface A {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @experimentalDecorators: true
|
||||
// @emitDecoratorMetadata: true
|
||||
// @target: es5
|
||||
// @skipLibCheck: true
|
||||
// @includeBuiltFile: lib.d.ts
|
||||
|
||||
// @filename: event.ts
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @lib: es6,dom,dom.iterable
|
||||
// @skipLibCheck: true
|
||||
// @lib: es6,dom,dom.iterable
|
||||
// @target: es6
|
||||
|
||||
for (const element of document.getElementsByTagName("a")) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// @target: es2015
|
||||
// @module: commonjs
|
||||
// @skipLibCheck: true
|
||||
// @lib: es2015,dom
|
||||
// @filename: main.ts
|
||||
import { X } from "./other";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: preserve
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: preserve
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: preserve
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @target: es2017
|
||||
// @jsx: react
|
||||
// @moduleResolution: node
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
// @filename: declaration.d.ts
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @target: es2017
|
||||
// @jsx: react
|
||||
// @moduleResolution: node
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
// @filename: declaration.d.ts
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: react
|
||||
// @moduleResolution: node
|
||||
// @noImplicitAny: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
// @filename: declaration.d.ts
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @target: es2017
|
||||
// @jsx: react
|
||||
// @moduleResolution: node
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
// @filename: declaration.d.ts
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: preserve
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: preserve
|
||||
// @module: amd
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: preserve
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: preserve
|
||||
// @module: amd
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react')
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: preserve
|
||||
// @module: amd
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react')
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: preserve
|
||||
// @module: amd
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react')
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: preserve
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
function EmptyPropSFC() {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: preserve
|
||||
// @module: amd
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react')
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// @jsx: preserve
|
||||
// @module: amd
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react')
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @filename: file.tsx
|
||||
// @jsx: react
|
||||
// @noLib: true
|
||||
// @skipLibCheck: true
|
||||
// @libFiles: react.d.ts,lib.d.ts
|
||||
|
||||
import React = require('react');
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @target: esnext
|
||||
// @skipLibCheck: true
|
||||
// @lib: esnext
|
||||
// @noEmit: true
|
||||
// @filename: methodIsOk.ts
|
||||
|
||||
Reference in New Issue
Block a user