From 337cb393408276b04d06950b6a475c1b246e8a08 Mon Sep 17 00:00:00 2001 From: Linghong Date: Tue, 15 Sep 2026 07:43:39 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=80=80=E5=BD=B9=E7=AD=96?= =?UTF-8?q?=E5=88=92=E4=BA=8B=E4=BB=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 planning-session-v2-stream 订阅注销测试 保留通用 Tauri 事件订阅竞态回归覆盖 --- .../tests/tauriEventSubscription.test.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts b/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts index 43a9aa8e3..7108ebc67 100644 --- a/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts +++ b/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts @@ -121,22 +121,6 @@ describe('subscribeTauriEvent', () => { expect(handler).toHaveBeenCalledTimes(1); }); - it('真实 WebView 内不经过会读注册表的库内注销脚本', async () => { - fake = createTauriEventFake(); - fake.install(); - - const unsubscribe = await subscribeTauriEvent( - 'planning-session-v2-stream', - vi.fn(), - ); - unsubscribe(); - - // 库内 listen 一次都没用到:AGC 自己走 event 插件 invoke。 - expect(fake.bridgeListenCalls).toBe(0); - expect(fake.racyUnregisterCalls).toBe(0); - expect(fake.racyUnregisterViolations).toEqual([]); - }); - it('没有原生 internals 时回落到注入的事件桥接(jsdom 替身 / 浏览器预览)', async () => { fake = createTauriEventFake(); fake.install();