From 13b4593f3795d0f15d1ba10689249c82e9f2621c Mon Sep 17 00:00:00 2001 From: shadcn Date: Tue, 7 Apr 2026 15:49:26 +0400 Subject: [PATCH] fix --- packages/shadcn/src/utils/file-helper.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/shadcn/src/utils/file-helper.test.ts b/packages/shadcn/src/utils/file-helper.test.ts index 52f43f83fc..5b8c34db33 100644 --- a/packages/shadcn/src/utils/file-helper.test.ts +++ b/packages/shadcn/src/utils/file-helper.test.ts @@ -52,11 +52,9 @@ describe("withFileBackup", () => { const consoleErrorSpy = vi .spyOn(console, "error") .mockImplementation(() => {}) - const renameSyncSpy = vi - .spyOn(fs, "renameSync") - .mockImplementation(() => { - throw new Error("boom") - }) + const renameSyncSpy = vi.spyOn(fs, "renameSync").mockImplementation(() => { + throw new Error("boom") + }) await expect( withFileBackup(filePath, async () => {