From 45f5ec15c245e3db0d66ea04fec7c38ec3c557a1 Mon Sep 17 00:00:00 2001 From: Arjan Singh <1598641+arjansingh@users.noreply.github.com> Date: Sat, 27 Sep 2025 09:36:41 -0700 Subject: [PATCH] [fix] remove unnecessary afterEach (#5817) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary We didn't need the `afterEach` in this test. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5817-fix-remove-unnecessary-afterEach-27b6d73d3650814bb4f1c426c5b17a54) by [Unito](https://www.unito.io) --- .../vueNodes/composables/useNodePointerInteractions.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts index ad598bdbe..f0c046ca0 100644 --- a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts +++ b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts @@ -1,4 +1,4 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import { beforeEach, describe, expect, it, vi } from 'vitest' import { nextTick, ref } from 'vue' import type { VueNodeData } from '@/composables/graph/useGraphNodeManager' @@ -71,10 +71,6 @@ describe('useNodePointerInteractions', () => { vi.clearAllMocks() }) - afterEach(() => { - vi.restoreAllMocks() - }) - it('should only start drag on left-click', async () => { const mockNodeData = createMockVueNodeData() const mockOnPointerUp = vi.fn()