From 450682238922bf025ff919f0a84147894710fb71 Mon Sep 17 00:00:00 2001 From: K-Sato Date: Thu, 24 Aug 2023 14:14:20 +0900 Subject: [PATCH] chore: remove a duplicate call in init.test (#1319) * chore: remove duplicate call in init.test * chore: add changeset --------- Co-authored-by: shadcn --- .changeset/new-jeans-doubt.md | 5 +++++ packages/cli/test/commands/init.test.ts | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .changeset/new-jeans-doubt.md diff --git a/.changeset/new-jeans-doubt.md b/.changeset/new-jeans-doubt.md new file mode 100644 index 00000000000..04708eec284 --- /dev/null +++ b/.changeset/new-jeans-doubt.md @@ -0,0 +1,5 @@ +--- +"shadcn-ui": patch +--- + +remove duplicate vi call diff --git a/packages/cli/test/commands/init.test.ts b/packages/cli/test/commands/init.test.ts index 9cc6eea1c16..ad2a7023b1b 100644 --- a/packages/cli/test/commands/init.test.ts +++ b/packages/cli/test/commands/init.test.ts @@ -8,12 +8,6 @@ import { getConfig } from "../../src/utils/get-config" import * as getPackageManger from "../../src/utils/get-package-manager" import * as registry from "../../src/utils/registry" -vi.mock("execa") -vi.mock("fs/promises", () => ({ - writeFile: vi.fn(), - mkdir: vi.fn(), -})) - vi.mock("execa") vi.mock("fs/promises", () => ({ writeFile: vi.fn(),