Skip to content

Commit 5f51450

Browse files
committed
Regenerate baseline after rebasing
1 parent 108f9d7 commit 5f51450

File tree

9 files changed

+244
-237
lines changed

9 files changed

+244
-237
lines changed

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
8585
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
8686
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
87+
// "inferInstanceTypeArgumentsAsConstraint": true, /* Default type arguments to parameter constraint or 'unknown' instead of 'any'. */
8788
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
8889
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
8990
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
8585
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
8686
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
87+
// "inferInstanceTypeArgumentsAsConstraint": true, /* Default type arguments to parameter constraint or 'unknown' instead of 'any'. */
8788
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
8889
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
8990
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"inferInstanceTypeArgumentsAsConstraint": true
4+
}
5+
}

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js

+39-39
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ export const c = 30;
66
import {c} from "file1"; export const d = 30;
77

88
//// [/a/lib/lib.d.ts]
9-
/// <reference no-default-lib="true"/>
10-
interface Boolean {}
11-
interface Function {}
12-
interface CallableFunction {}
13-
interface NewableFunction {}
14-
interface IArguments {}
15-
interface Number { toExponential: any; }
16-
interface Object {}
17-
interface RegExp {}
18-
interface String { charAt: any; }
9+
/// <reference no-default-lib="true"/>
10+
interface Boolean {}
11+
interface Function {}
12+
interface CallableFunction {}
13+
interface NewableFunction {}
14+
interface IArguments {}
15+
interface Number { toExponential: any; }
16+
interface Object {}
17+
interface RegExp {}
18+
interface String { charAt: any; }
1919
interface Array<T> { length: number; [n: number]: T; }
2020

2121
//// [/user/username/projects/myproject/tsconfig.json]
@@ -25,10 +25,10 @@ interface Array<T> { length: number; [n: number]: T; }
2525
/a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json
2626
Output::
2727
>> Screen clear
28-
[12:00:25 AM] Starting compilation in watch mode...
29-
30-
[12:00:40 AM] Found 0 errors. Watching for file changes.
31-
28+
[12:00:25 AM] Starting compilation in watch mode...
29+
30+
[12:00:40 AM] Found 0 errors. Watching for file changes.
31+
3232

3333

3434
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"]
@@ -72,29 +72,29 @@ FsWatchesRecursive::
7272
exitCode:: ExitStatus.undefined
7373

7474
//// [/user/username/projects/myproject/file1.js]
75-
define(["require", "exports"], function (require, exports) {
76-
"use strict";
77-
exports.__esModule = true;
78-
exports.c = void 0;
79-
exports.c = 30;
80-
});
75+
define(["require", "exports"], function (require, exports) {
76+
"use strict";
77+
exports.__esModule = true;
78+
exports.c = void 0;
79+
exports.c = 30;
80+
});
8181

8282

8383
//// [/user/username/projects/myproject/decls/file1.d.ts]
84-
export declare const c = 30;
84+
export declare const c = 30;
8585

8686

8787
//// [/user/username/projects/myproject/src/file2.js]
88-
define(["require", "exports"], function (require, exports) {
89-
"use strict";
90-
exports.__esModule = true;
91-
exports.d = void 0;
92-
exports.d = 30;
93-
});
88+
define(["require", "exports"], function (require, exports) {
89+
"use strict";
90+
exports.__esModule = true;
91+
exports.d = void 0;
92+
exports.d = 30;
93+
});
9494

9595

9696
//// [/user/username/projects/myproject/decls/src/file2.d.ts]
97-
export declare const d = 30;
97+
export declare const d = 30;
9898

9999

100100

@@ -136,10 +136,10 @@ export const y = 10;
136136

137137
Output::
138138
>> Screen clear
139-
[12:00:43 AM] File change detected. Starting incremental compilation...
140-
141-
[12:00:48 AM] Found 0 errors. Watching for file changes.
142-
139+
[12:00:43 AM] File change detected. Starting incremental compilation...
140+
141+
[12:00:48 AM] Found 0 errors. Watching for file changes.
142+
143143

144144

145145
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
@@ -182,16 +182,16 @@ FsWatchesRecursive::
182182
exitCode:: ExitStatus.undefined
183183

184184
//// [/user/username/projects/myproject/src/file3.js]
185-
define(["require", "exports"], function (require, exports) {
186-
"use strict";
187-
exports.__esModule = true;
188-
exports.y = void 0;
189-
exports.y = 10;
190-
});
185+
define(["require", "exports"], function (require, exports) {
186+
"use strict";
187+
exports.__esModule = true;
188+
exports.y = void 0;
189+
exports.y = 10;
190+
});
191191

192192

193193
//// [/user/username/projects/myproject/decls/src/file3.d.ts]
194-
export declare const y = 10;
194+
export declare const y = 10;
195195

196196

197197

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js

+39-39
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ export const c = 30;
66
import {c} from "file1"; export const d = 30;
77

88
//// [/a/lib/lib.d.ts]
9-
/// <reference no-default-lib="true"/>
10-
interface Boolean {}
11-
interface Function {}
12-
interface CallableFunction {}
13-
interface NewableFunction {}
14-
interface IArguments {}
15-
interface Number { toExponential: any; }
16-
interface Object {}
17-
interface RegExp {}
18-
interface String { charAt: any; }
9+
/// <reference no-default-lib="true"/>
10+
interface Boolean {}
11+
interface Function {}
12+
interface CallableFunction {}
13+
interface NewableFunction {}
14+
interface IArguments {}
15+
interface Number { toExponential: any; }
16+
interface Object {}
17+
interface RegExp {}
18+
interface String { charAt: any; }
1919
interface Array<T> { length: number; [n: number]: T; }
2020

2121
//// [/user/username/projects/myproject/tsconfig.json]
@@ -25,10 +25,10 @@ interface Array<T> { length: number; [n: number]: T; }
2525
/a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json
2626
Output::
2727
>> Screen clear
28-
[12:00:25 AM] Starting compilation in watch mode...
29-
30-
[12:00:46 AM] Found 0 errors. Watching for file changes.
31-
28+
[12:00:25 AM] Starting compilation in watch mode...
29+
30+
[12:00:46 AM] Found 0 errors. Watching for file changes.
31+
3232

3333

3434
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"]
@@ -72,29 +72,29 @@ FsWatchesRecursive::
7272
exitCode:: ExitStatus.undefined
7373

7474
//// [/user/username/projects/myproject/build/file1.js]
75-
define(["require", "exports"], function (require, exports) {
76-
"use strict";
77-
exports.__esModule = true;
78-
exports.c = void 0;
79-
exports.c = 30;
80-
});
75+
define(["require", "exports"], function (require, exports) {
76+
"use strict";
77+
exports.__esModule = true;
78+
exports.c = void 0;
79+
exports.c = 30;
80+
});
8181

8282

8383
//// [/user/username/projects/myproject/decls/file1.d.ts]
84-
export declare const c = 30;
84+
export declare const c = 30;
8585

8686

8787
//// [/user/username/projects/myproject/build/src/file2.js]
88-
define(["require", "exports"], function (require, exports) {
89-
"use strict";
90-
exports.__esModule = true;
91-
exports.d = void 0;
92-
exports.d = 30;
93-
});
88+
define(["require", "exports"], function (require, exports) {
89+
"use strict";
90+
exports.__esModule = true;
91+
exports.d = void 0;
92+
exports.d = 30;
93+
});
9494

9595

9696
//// [/user/username/projects/myproject/decls/src/file2.d.ts]
97-
export declare const d = 30;
97+
export declare const d = 30;
9898

9999

100100

@@ -136,10 +136,10 @@ export const y = 10;
136136

137137
Output::
138138
>> Screen clear
139-
[12:00:49 AM] File change detected. Starting incremental compilation...
140-
141-
[12:00:54 AM] Found 0 errors. Watching for file changes.
142-
139+
[12:00:49 AM] File change detected. Starting incremental compilation...
140+
141+
[12:00:54 AM] Found 0 errors. Watching for file changes.
142+
143143

144144

145145
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
@@ -182,16 +182,16 @@ FsWatchesRecursive::
182182
exitCode:: ExitStatus.undefined
183183

184184
//// [/user/username/projects/myproject/build/src/file3.js]
185-
define(["require", "exports"], function (require, exports) {
186-
"use strict";
187-
exports.__esModule = true;
188-
exports.y = void 0;
189-
exports.y = 10;
190-
});
185+
define(["require", "exports"], function (require, exports) {
186+
"use strict";
187+
exports.__esModule = true;
188+
exports.y = void 0;
189+
exports.y = 10;
190+
});
191191

192192

193193
//// [/user/username/projects/myproject/decls/src/file3.d.ts]
194-
export declare const y = 10;
194+
export declare const y = 10;
195195

196196

197197

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js

+36-36
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ export const c = 30;
66
import {c} from "file1"; export const d = 30;
77

88
//// [/a/lib/lib.d.ts]
9-
/// <reference no-default-lib="true"/>
10-
interface Boolean {}
11-
interface Function {}
12-
interface CallableFunction {}
13-
interface NewableFunction {}
14-
interface IArguments {}
15-
interface Number { toExponential: any; }
16-
interface Object {}
17-
interface RegExp {}
18-
interface String { charAt: any; }
9+
/// <reference no-default-lib="true"/>
10+
interface Boolean {}
11+
interface Function {}
12+
interface CallableFunction {}
13+
interface NewableFunction {}
14+
interface IArguments {}
15+
interface Number { toExponential: any; }
16+
interface Object {}
17+
interface RegExp {}
18+
interface String { charAt: any; }
1919
interface Array<T> { length: number; [n: number]: T; }
2020

2121
//// [/user/username/projects/myproject/tsconfig.json]
@@ -25,10 +25,10 @@ interface Array<T> { length: number; [n: number]: T; }
2525
/a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json
2626
Output::
2727
>> Screen clear
28-
[12:00:25 AM] Starting compilation in watch mode...
29-
30-
[12:00:36 AM] Found 0 errors. Watching for file changes.
31-
28+
[12:00:25 AM] Starting compilation in watch mode...
29+
30+
[12:00:36 AM] Found 0 errors. Watching for file changes.
31+
3232

3333

3434
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"]
@@ -72,21 +72,21 @@ FsWatchesRecursive::
7272
exitCode:: ExitStatus.undefined
7373

7474
//// [/user/username/projects/myproject/build/file1.js]
75-
define(["require", "exports"], function (require, exports) {
76-
"use strict";
77-
exports.__esModule = true;
78-
exports.c = void 0;
79-
exports.c = 30;
80-
});
75+
define(["require", "exports"], function (require, exports) {
76+
"use strict";
77+
exports.__esModule = true;
78+
exports.c = void 0;
79+
exports.c = 30;
80+
});
8181

8282

8383
//// [/user/username/projects/myproject/build/src/file2.js]
84-
define(["require", "exports"], function (require, exports) {
85-
"use strict";
86-
exports.__esModule = true;
87-
exports.d = void 0;
88-
exports.d = 30;
89-
});
84+
define(["require", "exports"], function (require, exports) {
85+
"use strict";
86+
exports.__esModule = true;
87+
exports.d = void 0;
88+
exports.d = 30;
89+
});
9090

9191

9292

@@ -128,10 +128,10 @@ export const y = 10;
128128

129129
Output::
130130
>> Screen clear
131-
[12:00:39 AM] File change detected. Starting incremental compilation...
132-
133-
[12:00:42 AM] Found 0 errors. Watching for file changes.
134-
131+
[12:00:39 AM] File change detected. Starting incremental compilation...
132+
133+
[12:00:42 AM] Found 0 errors. Watching for file changes.
134+
135135

136136

137137
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
@@ -174,12 +174,12 @@ FsWatchesRecursive::
174174
exitCode:: ExitStatus.undefined
175175

176176
//// [/user/username/projects/myproject/build/src/file3.js]
177-
define(["require", "exports"], function (require, exports) {
178-
"use strict";
179-
exports.__esModule = true;
180-
exports.y = void 0;
181-
exports.y = 10;
182-
});
177+
define(["require", "exports"], function (require, exports) {
178+
"use strict";
179+
exports.__esModule = true;
180+
exports.y = void 0;
181+
exports.y = 10;
182+
});
183183

184184

185185

0 commit comments

Comments
 (0)