fix: wrong type in init files (#2492)

This commit is contained in:
Marvin Hagemeister
2024-06-04 18:26:44 +02:00
committed by GitHub
parent 339ee98ea3
commit bcfb4e34c1
2 changed files with 21 additions and 2 deletions
+19
View File
@@ -125,6 +125,25 @@ Deno.test("init - with vscode", async () => {
});
});
Deno.test("init - type check project", async () => {
await withTmpDir(async (dir) => {
const mock = mockUserInput({
[InitStep.ProjectName]: ".",
});
await initProject(dir, [], {}, mock.tty);
await expectProjectFile(dir, "main.ts");
await expectProjectFile(dir, "dev.ts");
const check = await new Deno.Command(Deno.execPath(), {
args: ["check", "main.ts", "dev.ts"],
cwd: dir,
stderr: "inherit",
stdout: "inherit",
}).output();
expect(check.code).toEqual(0);
});
});
Deno.test("init - can start dev server", async () => {
await withTmpDir(async (dir) => {
const mock = mockUserInput({