• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1namespace ts {
2    describe("unittests:: tsbuild - empty files option in tsconfig", () => {
3        let projFs: vfs.FileSystem;
4        before(() => {
5            projFs = loadProjectFromDisk("tests/projects/empty-files");
6        });
7        after(() => {
8            projFs = undefined!;
9        });
10
11        verifyTsc({
12            scenario: "emptyFiles",
13            subScenario: "has empty files diagnostic when files is empty and no references are provided",
14            fs: () => projFs,
15            commandLineArgs: ["--b", "/src/no-references"],
16        });
17
18        verifyTsc({
19            scenario: "emptyFiles",
20            subScenario: "does not have empty files diagnostic when files is empty and references are provided",
21            fs: () => projFs,
22            commandLineArgs: ["--b", "/src/with-references"],
23        });
24    });
25}
26