From 644b95a3c913a3d313b9b8ff08aeb23465d9d0d2 Mon Sep 17 00:00:00 2001 From: lili Date: Wed, 17 Jun 2026 16:37:25 -0700 Subject: [PATCH] =?UTF-8?q?docs(studio):=20.agent=20=E8=AE=B0=E5=8D=95?= =?UTF-8?q?=E6=B5=8B=E9=97=A8=E2=80=94=E2=80=94npm=20test(vitest)+=20bridg?= =?UTF-8?q?e=20tsx=20=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增测试栈后补验证门:单测=npm test(vitest,src/**/*.spec.ts,U6 已立);bridge 安全测试走 node --import tsx --test。新增逻辑须带 spec。 Co-Authored-By: Claude Opus 4.8 --- game-studio/.agent | 1 + 1 file changed, 1 insertion(+) diff --git a/game-studio/.agent b/game-studio/.agent index 437736f9..f16e5896 100644 --- a/game-studio/.agent +++ b/game-studio/.agent @@ -43,4 +43,5 @@ game-studio/ ## 验证门铁律(本仓特有,勿踩) - **`vue-tsc --noEmit` 在本仓恒退 0 = 假门禁**(根 tsconfig files:[])。类型检查权威 = `npm run build`(含 `vue-tsc -b`)。 +- **单测 = `npm test`(vitest,`src/**/*.spec.ts`)**:U6 已立 store/Create 测;新增 store/组件逻辑须带 spec(vi.mock 隔离 api/router)。另 `src/host/bridge.security.test.mts` 走 `node --import tsx --test`(`.mts` 不入构建,见文件头)。 - mock 数据严格贴契约 YAML,发现缺口上报 contractGaps、**不私造契约**。