Skip to content

Commit e3cc4f4

Browse files
committed
missingExtendedConfig to baseline test
1 parent 7c0cc4a commit e3cc4f4

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
namespace ts {
22
describe("unittests:: tsbuild:: when tsconfig extends the missing file", () => {
3-
it("unittests:: tsbuild - when tsconfig extends the missing file", () => {
4-
const projFs = loadProjectFromDisk("tests/projects/missingExtendedConfig");
5-
const fs = projFs.shadow();
6-
const host = fakes.SolutionBuilderHost.create(fs);
7-
const builder = createSolutionBuilder(host, ["/src/tsconfig.json"], {});
8-
builder.build();
9-
host.assertDiagnosticMessages(
10-
errorDiagnostic([Diagnostics.The_specified_path_does_not_exist_Colon_0, "/src/foobar.json"]),
11-
errorDiagnostic([Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, "/src/tsconfig.first.json", "[\"**/*\"]", "[]"]),
12-
errorDiagnostic([Diagnostics.The_specified_path_does_not_exist_Colon_0, "/src/foobar.json"]),
13-
errorDiagnostic([Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, "/src/tsconfig.second.json", "[\"**/*\"]", "[]"])
14-
);
3+
let projFs: vfs.FileSystem;
4+
before(() => {
5+
projFs = loadProjectFromDisk("tests/projects/missingExtendedConfig");
6+
});
7+
after(() => {
8+
projFs = undefined!;
9+
});
10+
verifyTsc({
11+
scenario: "missingExtendedConfig",
12+
subScenario: "when tsconfig extends the missing file",
13+
fs: () => projFs,
14+
commandLineArgs: ["--b", "/src/tsconfig.json"],
1515
});
1616
});
1717
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//// [/lib/initial-buildOutput.txt]
2+
/lib/tsc --b /src/tsconfig.json
3+
error TS5058: The specified path does not exist: '/src/foobar.json'.
4+
error TS18003: No inputs were found in config file '/src/tsconfig.first.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.
5+
error TS5058: The specified path does not exist: '/src/foobar.json'.
6+
error TS18003: No inputs were found in config file '/src/tsconfig.second.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.
7+
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
8+
9+

0 commit comments

Comments
 (0)