chore: ignore check fmt on canary (#2925)
Ignore checking formatting on canary as the formatting might be different from stable releases of Deno.
This commit is contained in:
+24
-18
@@ -121,25 +121,31 @@ Deno.test("init - with vscode", async () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Deno.test("init - fmt, lint, and type check project", async () => {
|
Deno.test({
|
||||||
await withTmpDir(async (dir) => {
|
name: "init - fmt, lint, and type check project",
|
||||||
const mock = mockUserInput({
|
// Ignore this test on canary due to different formatting
|
||||||
[InitStep.ProjectName]: ".",
|
// 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 () => {
|
Deno.test("init with tailwind - fmt, lint, and type check project", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user