Skip to content

Commit 86f579a

Browse files
test: mock console.error in handleFieldMouseDown tests to prevent error logging
1 parent 2c14e30 commit 86f579a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visualBuilder/utils/__test__/handleFieldMouseDown.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ describe("`handleFieldInput`", () => {
303303

304304
test("should call `sendFieldEvent` on input event", () => {
305305
const spiedSendFieldEvent = vi.spyOn(generateOverlay, "sendFieldEvent");
306-
const consoleError = vi.spyOn(console, "error");
306+
const consoleError = vi.spyOn(console, "error").mockImplementation(() => {});
307307
spiedSendFieldEvent.mockImplementation(() => {
308308
throw new Error("sendFieldEvent not implemented");
309309
});

0 commit comments

Comments
 (0)