-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes the tests that got disabled when generating config set es2016 e…
…xpecting to find libFile and remove incorrect affects flag from listFilesOnly (#51243) * Fix the existing test * Remove affectsEmit from listFilesOnly
- Loading branch information
1 parent
18f559f
commit cfa55f1
Showing
11 changed files
with
282 additions
and
1,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
tests/baselines/reference/tsc/listFilesOnly/combined-with-incremental.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
Input:: | ||
//// [/lib/lib.d.ts] | ||
/// <reference no-default-lib="true"/> | ||
interface Boolean {} | ||
interface Function {} | ||
interface CallableFunction {} | ||
interface NewableFunction {} | ||
interface IArguments {} | ||
interface Number { toExponential: any; } | ||
interface Object {} | ||
interface RegExp {} | ||
interface String { charAt: any; } | ||
interface Array<T> { length: number; [n: number]: T; } | ||
interface ReadonlyArray<T> {} | ||
declare const console: { log(msg: any): void; }; | ||
|
||
//// [/src/test.ts] | ||
export const x = 1; | ||
|
||
//// [/src/tsconfig.json] | ||
{} | ||
|
||
|
||
|
||
Output:: | ||
/lib/tsc -p /src --incremental --listFilesOnly | ||
/lib/lib.d.ts | ||
/src/test.ts | ||
exitCode:: ExitStatus.Success | ||
|
||
|
||
|
||
|
||
Change:: no-change-run | ||
Input:: | ||
|
||
|
||
Output:: | ||
/lib/tsc -p /src --incremental | ||
exitCode:: ExitStatus.Success | ||
|
||
|
||
//// [/src/test.js] | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports.x = void 0; | ||
exports.x = 1; | ||
|
||
|
||
//// [/src/tsconfig.tsbuildinfo] | ||
{"program":{"fileNames":["../lib/lib.d.ts","./test.ts"],"fileInfos":[{"version":"3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-12038591281-export const x = 1;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} | ||
|
||
//// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] | ||
{ | ||
"program": { | ||
"fileNames": [ | ||
"../lib/lib.d.ts", | ||
"./test.ts" | ||
], | ||
"fileInfos": { | ||
"../lib/lib.d.ts": { | ||
"version": "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };", | ||
"signature": "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };", | ||
"affectsGlobalScope": true | ||
}, | ||
"./test.ts": { | ||
"version": "-12038591281-export const x = 1;", | ||
"signature": "-12038591281-export const x = 1;" | ||
} | ||
}, | ||
"referencedMap": {}, | ||
"exportedModulesMap": {}, | ||
"semanticDiagnosticsPerFile": [ | ||
"../lib/lib.d.ts", | ||
"./test.ts" | ||
] | ||
}, | ||
"version": "FakeTSVersion", | ||
"size": 689 | ||
} | ||
|
||
|
||
|
||
Change:: no-change-run | ||
Input:: | ||
|
||
|
||
Output:: | ||
/lib/tsc -p /src --incremental --listFilesOnly | ||
/lib/lib.d.ts | ||
/src/test.ts | ||
exitCode:: ExitStatus.Success | ||
|
||
|
||
|
||
|
||
Change:: no-change-run | ||
Input:: | ||
|
||
|
||
Output:: | ||
/lib/tsc -p /src --incremental | ||
exitCode:: ExitStatus.Success | ||
|
||
|
Oops, something went wrong.