From 01c61fdeb5b759b5c84c9bb0a827e172558aac26 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 7 May 2025 00:48:24 +0200 Subject: [PATCH] chore: ignore check fmt on canary --- init/src/init_test.ts | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/init/src/init_test.ts b/init/src/init_test.ts index f8a6a9967fa..e13c7ef6516 100644 --- a/init/src/init_test.ts +++ b/init/src/init_test.ts @@ -121,25 +121,31 @@ Deno.test("init - with vscode", async () => { }); }); -Deno.test("init - fmt, lint, and type check project", async () => { - await withTmpDir(async (dir) => { - const mock = mockUserInput({ - [InitStep.ProjectName]: ".", +Deno.test({ + name: "init - fmt, lint, and type check project", + // Ignore this test on canary due to different formatting + // behaviours when the formatter changes. + ignore: Deno.version.deno.includes("+"), + fn: 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"); + + await patchProject(dir); + + const check = await new Deno.Command(Deno.execPath(), { + args: ["task", "check"], + cwd: dir, + stderr: "inherit", + stdout: "inherit", + }).output(); + expect(check.code).toEqual(0); }); - await initProject(dir, [], {}, mock.tty); - await expectProjectFile(dir, "main.ts"); - await expectProjectFile(dir, "dev.ts"); - - await patchProject(dir); - - const check = await new Deno.Command(Deno.execPath(), { - args: ["task", "check"], - cwd: dir, - stderr: "inherit", - stdout: "inherit", - }).output(); - expect(check.code).toEqual(0); - }); + }, }); Deno.test("init with tailwind - fmt, lint, and type check project", async () => {