mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
fix
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user