This commit is contained in:
shadcn
2026-04-07 15:49:26 +04:00
parent 98e56b773c
commit 13b4593f37

View File

@@ -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 () => {