Skip to content

Commit

Permalink
Merge pull request #2 from boenrobot/incremental-fixes
Browse files Browse the repository at this point in the history
Test fixes
  • Loading branch information
michaelaird authored Sep 12, 2019
2 parents dcab04d + 1c37fbd commit ca7874a
Show file tree
Hide file tree
Showing 83 changed files with 1,477 additions and 970 deletions.
1,963 changes: 994 additions & 969 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"@types/through2": "2.0.33",
"@types/vinyl": "2.0.2",
"@types/vinyl-fs": "2.4.9",
"compare-versions": "^3.5.1",
"gulp": "^4.0.0",
"gulp-concat": "^2.6.1",
"gulp-diff": "^1.0.0",
Expand Down
18 changes: 18 additions & 0 deletions test/baselines/base/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
TypeScript error: error TS2318: Cannot find global type 'Array'.
TypeScript error: error TS2318: Cannot find global type 'Boolean'.
TypeScript error: error TS2318: Cannot find global type 'Function'.
TypeScript error: error TS2318: Cannot find global type 'IArguments'.
TypeScript error: error TS2318: Cannot find global type 'Number'.
TypeScript error: error TS2318: Cannot find global type 'Object'.
TypeScript error: error TS2318: Cannot find global type 'RegExp'.
TypeScript error: error TS2318: Cannot find global type 'String'.
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 8,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
1 change: 1 addition & 0 deletions test/baselines/base/3.4/js/a.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = {};
3 changes: 3 additions & 0 deletions test/baselines/basic/3.4/dts/other-3.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare class Hello {
value: string;
}
1 change: 1 addition & 0 deletions test/baselines/basic/3.4/dts/test-3.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
10 changes: 10 additions & 0 deletions test/baselines/basic/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
12 changes: 12 additions & 0 deletions test/baselines/basic/3.4/js/other-3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/basic/3.4/js/other-3.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/baselines/basic/3.4/js/test-3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/basic/3.4/js/test-3.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions test/baselines/bom/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
1 change: 1 addition & 0 deletions test/baselines/bom/3.4/js/test-bom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('hello world!');
10 changes: 10 additions & 0 deletions test/baselines/customTransformers/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
Empty file.
14 changes: 14 additions & 0 deletions test/baselines/errorReporting/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TypeScript error: test/errorReporting/test-4.ts(2,1): error TS2304: Cannot find name 'asdf'.
TypeScript error: test/errorReporting/test-4.ts(7,1): error TS2322: Type '{ y: string; }[][]' is not assignable to type '{ x: number; }[][]'.
Type '{ y: string; }[]' is not assignable to type '{ x: number; }[]'.
Property 'x' is missing in type '{ y: string; }' but required in type '{ x: number; }'.
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 2,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
8 changes: 8 additions & 0 deletions test/baselines/errorReporting/3.4/js/test-4.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/errorReporting/3.4/js/test-4.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions test/baselines/existingSourceMaps/3.4/all.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare class Apple {
}
declare class Banana {
}
1 change: 1 addition & 0 deletions test/baselines/existingSourceMaps/3.4/all.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions test/baselines/existingSourceMaps/3.4/all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/existingSourceMaps/3.4/all.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions test/baselines/existingSourceMaps/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
2 changes: 2 additions & 0 deletions test/baselines/externalResolve/3.4/dts/test-2.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference path="referenced.d.ts" />
export {};
10 changes: 10 additions & 0 deletions test/baselines/externalResolve/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
10 changes: 10 additions & 0 deletions test/baselines/externalResolve/3.4/js/test-2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/externalResolve/3.4/js/test-2.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions test/baselines/isolatedModules/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TypeScript error: test/isolatedModules/test-3.ts(2,1): error TS1128: Declaration or statement expected.
{
"transpileErrors": 1,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
11 changes: 11 additions & 0 deletions test/baselines/isolatedModules/3.4/js/other-3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/isolatedModules/3.4/js/other-3.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions test/baselines/isolatedModules/3.4/js/test-3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/isolatedModules/3.4/js/test-3.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions test/baselines/noEmit/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TypeScript error: test/noEmit/a.ts(1,14): error TS6131: Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'.
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 1,
"declarationErrors": 0,
"emitErrors": 0,
"noEmit": true,
"emitSkipped": true
}
19 changes: 19 additions & 0 deletions test/baselines/noEmitOnError/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
TypeScript error: test/noEmitOnError/a.ts(1,1): error TS2304: Cannot find name 'foo'.
TypeScript error: test/noEmitOnError/a.ts(2,5): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
TypeScript error: test/noEmitOnError/a.ts(3,2): error TS1109: Expression expected.
TypeScript error: test/noEmitOnError/a.ts(3,3): error TS1127: Invalid character.
TypeScript error: test/noEmitOnError/a.ts(3,4): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
TypeScript error: test/noEmitOnError/a.ts(3,6): error TS1109: Expression expected.
TypeScript error: test/noEmitOnError/a.ts(3,7): error TS1109: Expression expected.
TypeScript error: test/noEmitOnError/a.ts(3,8): error TS1109: Expression expected.
TypeScript error: test/noEmitOnError/a.ts(3,9): error TS1109: Expression expected.
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 6,
"globalErrors": 0,
"semanticErrors": 3,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": true
}
5 changes: 5 additions & 0 deletions test/baselines/out/3.4/dts/concat.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare class Hello {
value: string;
}
declare var a: Hello;
declare var b: Symbol;
10 changes: 10 additions & 0 deletions test/baselines/out/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
7 changes: 7 additions & 0 deletions test/baselines/out/3.4/js/concat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/out/3.4/js/concat.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions test/baselines/sourceMaps/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
8 changes: 8 additions & 0 deletions test/baselines/sourceMaps/3.4/js/Main/MainFile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/sourceMaps/3.4/js/Main/MainFile.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/baselines/sourceMaps/3.4/js/Main/MainFileTsx.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/sourceMaps/3.4/js/Main/MainFileTsx.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test/baselines/sourceMaps/3.4/js/Main/sub/sub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/sourceMaps/3.4/js/Main/sub/sub.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions test/baselines/sourceMapsOutDir/3.4/errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"transpileErrors": 0,
"optionsErrors": 0,
"syntaxErrors": 0,
"globalErrors": 0,
"semanticErrors": 0,
"declarationErrors": 0,
"emitErrors": 0,
"emitSkipped": false
}
3 changes: 3 additions & 0 deletions test/baselines/sourceMapsOutDir/3.4/js/dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/baselines/sourceMapsOutDir/3.4/js/dist/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions test/baselines/sourceMapsOutDir/3.4/js/dist/sub/second.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"bundle": {
"commonSourceDirectory": "C:/Projects/github/gulp-typescript/test/tsConfigIncremental/src/",
"sourceFiles": [
"C:/Projects/github/gulp-typescript/test/tsConfigIncremental/src/app/bar.ts"
],
"js": {
"sections": [
{
"pos": 0,
"end": 94,
"kind": "text"
}
]
},
"dts": {
"sections": [
{
"pos": 0,
"end": 43,
"kind": "text"
}
]
}
},
"version": "3.4.5"
}
3 changes: 3 additions & 0 deletions test/baselines/tsConfigIncremental/3.4/dts/outFile.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare class Hello {
value: string;
}
Loading

0 comments on commit ca7874a

Please sign in to comment.