fix: avoid recursive conflict checks for copy and move (#6009)

This commit is contained in:
林桉 authored and GitHub committed 2026-07-04 08:13:31 +02:00
1 parent aac2516637
commit dfc2e887e1
3 files changed
+97 -44

No files matched your search

@@ -71,7 +71,9 @@ const event = {
describe("copy and move conflict prompts", () => {
beforeEach(() => {
vi.clearAllMocks();
vi.mocked(checkConflict).mockResolvedValue(conflict);
vi.mocked(checkConflict).mockResolvedValue(
conflict as ConflictingResource[]
);
});
it("waits for copy conflict detection before calling the copy API", async () => {