From 2086bcc3d7b2531b5b5d56afd827a3abddae1813 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Mon, 20 Jul 2026 18:24:32 +0300 Subject: [PATCH] test(app): isolate clipboard notification state --- tests/engine/app/clipboard/notifications.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/engine/app/clipboard/notifications.test.ts b/tests/engine/app/clipboard/notifications.test.ts index bc16a61b4..7affd8255 100644 --- a/tests/engine/app/clipboard/notifications.test.ts +++ b/tests/engine/app/clipboard/notifications.test.ts @@ -1,8 +1,12 @@ -import { afterEach, describe, expect, test } from 'bun:test' +import { afterEach, beforeEach, describe, expect, test } from 'bun:test' import { notifyClipboardImageResolution } from '@/app/editor/clipboard/notifications' import { toast } from '@/app/shell/ui' +beforeEach(() => { + toast.toasts.value = [] +}) + afterEach(() => { toast.toasts.value = [] })