Skip to content

Commit 25c3b99

Browse files
authored
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
1 parent de9c459 commit 25c3b99

30 files changed

+35
-1
lines changed

src/harness/parallel/worker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ namespace Harness.Parallel.Worker {
1212
testList.length = 0;
1313
}
1414
reportedUnitTests = true;
15+
if (testList.length) {
16+
// Execute unit tests
17+
testList.forEach(({ name, callback, kind }) => executeCallback(name, callback, kind));
18+
testList.length = 0;
19+
}
1520
const start = +(new Date());
1621
runner.initializeTests();
1722
testList.forEach(({ name, callback, kind }) => executeCallback(name, callback, kind));

tests/cases/compiler/APISample_compile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @module: commonjs
2+
// @skipLibCheck: true
23
// @includebuiltfile: typescript_standalone.d.ts
34
// @noImplicitAny:true
45
// @strictNullChecks:true

tests/cases/compiler/APISample_jsdoc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @module: commonjs
2+
// @skipLibCheck: true
23
// @includebuiltfile: typescript_standalone.d.ts
34
// @strict:true
45

tests/cases/compiler/APISample_linter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @module: commonjs
2+
// @skipLibCheck: true
23
// @includebuiltfile: typescript_standalone.d.ts
34
// @noImplicitAny:true
45
// @strictNullChecks:true

tests/cases/compiler/APISample_parseConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @module: commonjs
2+
// @skipLibCheck: true
23
// @includebuiltfile: typescript_standalone.d.ts
34
// @noImplicitAny:true
45
// @strictNullChecks:true

tests/cases/compiler/APISample_transform.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @module: commonjs
2+
// @skipLibCheck: true
23
// @includebuiltfile: typescript_standalone.d.ts
34
// @noImplicitAny:true
45
// @strictNullChecks:true

tests/cases/compiler/APISample_watcher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @module: commonjs
2+
// @skipLibCheck: true
23
// @includebuiltfile: typescript_standalone.d.ts
34
// @noImplicitAny:true
45
// @strictNullChecks:true

tests/cases/compiler/contextuallyTypeArgumentsKeyword.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @noEmit: true
22
// @allowJs: true
33
// @checkJs: true
4+
// @skipLibCheck: true
45
// @lib: es2017, dom
56
// @Filename: foo.js
67
// Repro for #16585

tests/cases/compiler/correctOrderOfPromiseMethod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @skipLibCheck: true
12
// @lib: dom, es7
23

34
interface A {

tests/cases/compiler/metadataOfEventAlias.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @experimentalDecorators: true
22
// @emitDecoratorMetadata: true
33
// @target: es5
4+
// @skipLibCheck: true
45
// @includeBuiltFile: lib.d.ts
56

67
// @filename: event.ts

0 commit comments

Comments
 (0)