Skip to content

Commit 4530d3e

Browse files
committed
Fixed scenario names
1 parent 6caa928 commit 4530d3e

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

src/testRunner/unittests/tsbuild/emptyFiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace ts {
1010

1111
verifyTsc({
1212
scenario: "emptyFiles",
13-
subScenario: "does not have empty files diagnostic when files is empty and references are provided",
13+
subScenario: "has empty files diagnostic when files is empty and no references are provided",
1414
fs: () => projFs,
1515
commandLineArgs: ["--b", "/src/no-references"],
1616
});
1717

1818
verifyTsc({
1919
scenario: "emptyFiles",
20-
subScenario: "has empty files diagnostic when files is empty and no references are provided",
20+
subScenario: "does not have empty files diagnostic when files is empty and references are provided",
2121
fs: () => projFs,
2222
commandLineArgs: ["--b", "/src/with-references"],
2323
});
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,49 @@
11
//// [/lib/initial-buildOutput.txt]
2-
/lib/tsc --b /src/no-references
3-
src/no-references/tsconfig.json(3,14): error TS18002: The 'files' list in config file '/src/no-references/tsconfig.json' is empty.
4-
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
2+
/lib/tsc --b /src/with-references
3+
exitCode:: ExitStatus.Success
54

65

6+
//// [/src/core/index.d.ts]
7+
export declare function multiply(a: number, b: number): number;
8+
//# sourceMappingURL=index.d.ts.map
9+
10+
//// [/src/core/index.d.ts.map]
11+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"}
12+
13+
//// [/src/core/index.js]
14+
"use strict";
15+
exports.__esModule = true;
16+
function multiply(a, b) { return a * b; }
17+
exports.multiply = multiply;
18+
19+
20+
//// [/src/core/tsconfig.tsbuildinfo]
21+
{
22+
"program": {
23+
"fileInfos": {
24+
"../../lib/lib.d.ts": {
25+
"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; };",
26+
"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; };"
27+
},
28+
"./index.ts": {
29+
"version": "5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n",
30+
"signature": "3361149553-export declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map"
31+
}
32+
},
33+
"options": {
34+
"composite": true,
35+
"declaration": true,
36+
"declarationMap": true,
37+
"skipDefaultLibCheck": true,
38+
"configFilePath": "./tsconfig.json"
39+
},
40+
"referencedMap": {},
41+
"exportedModulesMap": {},
42+
"semanticDiagnosticsPerFile": [
43+
"../../lib/lib.d.ts",
44+
"./index.ts"
45+
]
46+
},
47+
"version": "FakeTSVersion"
48+
}
49+
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,6 @@
11
//// [/lib/initial-buildOutput.txt]
2-
/lib/tsc --b /src/with-references
3-
exitCode:: ExitStatus.Success
2+
/lib/tsc --b /src/no-references
3+
src/no-references/tsconfig.json(3,14): error TS18002: The 'files' list in config file '/src/no-references/tsconfig.json' is empty.
4+
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
45

56

6-
//// [/src/core/index.d.ts]
7-
export declare function multiply(a: number, b: number): number;
8-
//# sourceMappingURL=index.d.ts.map
9-
10-
//// [/src/core/index.d.ts.map]
11-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"}
12-
13-
//// [/src/core/index.js]
14-
"use strict";
15-
exports.__esModule = true;
16-
function multiply(a, b) { return a * b; }
17-
exports.multiply = multiply;
18-
19-
20-
//// [/src/core/tsconfig.tsbuildinfo]
21-
{
22-
"program": {
23-
"fileInfos": {
24-
"../../lib/lib.d.ts": {
25-
"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; };",
26-
"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; };"
27-
},
28-
"./index.ts": {
29-
"version": "5112841898-export function multiply(a: number, b: number) { return a * b; }\r\n",
30-
"signature": "3361149553-export declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map"
31-
}
32-
},
33-
"options": {
34-
"composite": true,
35-
"declaration": true,
36-
"declarationMap": true,
37-
"skipDefaultLibCheck": true,
38-
"configFilePath": "./tsconfig.json"
39-
},
40-
"referencedMap": {},
41-
"exportedModulesMap": {},
42-
"semanticDiagnosticsPerFile": [
43-
"../../lib/lib.d.ts",
44-
"./index.ts"
45-
]
46-
},
47-
"version": "FakeTSVersion"
48-
}
49-

0 commit comments

Comments
 (0)