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:
Wesley Wigham
2017-10-04 13:14:05 -07:00
committed by GitHub
parent de9c459d5e
commit 25c3b99f29
30 changed files with 35 additions and 1 deletions

View File

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

View File

@@ -1,4 +1,5 @@
// @module: commonjs
// @skipLibCheck: true
// @includebuiltfile: typescript_standalone.d.ts
// @noImplicitAny:true
// @strictNullChecks:true

View File

@@ -1,4 +1,5 @@
// @module: commonjs
// @skipLibCheck: true
// @includebuiltfile: typescript_standalone.d.ts
// @strict:true

View File

@@ -1,4 +1,5 @@
// @module: commonjs
// @skipLibCheck: true
// @includebuiltfile: typescript_standalone.d.ts
// @noImplicitAny:true
// @strictNullChecks:true

View File

@@ -1,4 +1,5 @@
// @module: commonjs
// @skipLibCheck: true
// @includebuiltfile: typescript_standalone.d.ts
// @noImplicitAny:true
// @strictNullChecks:true

View File

@@ -1,4 +1,5 @@
// @module: commonjs
// @skipLibCheck: true
// @includebuiltfile: typescript_standalone.d.ts
// @noImplicitAny:true
// @strictNullChecks:true

View File

@@ -1,4 +1,5 @@
// @module: commonjs
// @skipLibCheck: true
// @includebuiltfile: typescript_standalone.d.ts
// @noImplicitAny:true
// @strictNullChecks:true

View File

@@ -1,6 +1,7 @@
// @noEmit: true
// @allowJs: true
// @checkJs: true
// @skipLibCheck: true
// @lib: es2017, dom
// @Filename: foo.js
// Repro for #16585

View File

@@ -1,3 +1,4 @@
// @skipLibCheck: true
// @lib: dom, es7
interface A {

View File

@@ -1,6 +1,7 @@
// @experimentalDecorators: true
// @emitDecoratorMetadata: true
// @target: es5
// @skipLibCheck: true
// @includeBuiltFile: lib.d.ts
// @filename: event.ts

View File

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

View File

@@ -1,5 +1,6 @@
// @target: es2015
// @module: commonjs
// @skipLibCheck: true
// @lib: es2015,dom
// @filename: main.ts
import { X } from "./other";

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -1,6 +1,7 @@
// @target: es2017
// @jsx: react
// @moduleResolution: node
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
// @filename: declaration.d.ts

View File

@@ -1,6 +1,7 @@
// @target: es2017
// @jsx: react
// @moduleResolution: node
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
// @filename: declaration.d.ts

View File

@@ -2,6 +2,7 @@
// @jsx: react
// @moduleResolution: node
// @noImplicitAny: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
// @filename: declaration.d.ts

View File

@@ -1,6 +1,7 @@
// @target: es2017
// @jsx: react
// @moduleResolution: node
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
// @filename: declaration.d.ts

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -2,6 +2,7 @@
// @jsx: preserve
// @module: amd
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -2,6 +2,7 @@
// @jsx: preserve
// @module: amd
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react')

View File

@@ -2,6 +2,7 @@
// @jsx: preserve
// @module: amd
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react')

View File

@@ -2,6 +2,7 @@
// @jsx: preserve
// @module: amd
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react')

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
function EmptyPropSFC() {

View File

@@ -2,6 +2,7 @@
// @jsx: preserve
// @module: amd
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react')

View File

@@ -2,6 +2,7 @@
// @jsx: preserve
// @module: amd
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react')

View File

@@ -1,6 +1,7 @@
// @filename: file.tsx
// @jsx: react
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');

View File

@@ -1,4 +1,5 @@
// @target: esnext
// @skipLibCheck: true
// @lib: esnext
// @noEmit: true
// @filename: methodIsOk.ts