From 0e17327ef0537c98195e88bda5b54b7eee0aab0a Mon Sep 17 00:00:00 2001 From: zhangxiang Date: Sat, 17 Oct 2026 07:57:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E8=A1=A5=E4=B8=8A=201c0ce5f4=20?= =?UTF-8?q?=E5=A3=B0=E7=A7=B0=E5=81=9A=E4=BA=86=E5=8D=B4=E6=B2=A1=E5=81=9A?= =?UTF-8?q?=E8=BF=9B=E5=8E=BB=E7=9A=84=E4=B8=A4=E5=A4=84=EF=BC=88package.j?= =?UTF-8?q?son=20=E9=87=8D=E5=A4=8D=E9=94=AE=E4=B8=8E=20test:all=20?= =?UTF-8?q?=E5=8F=A3=E5=BE=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 自报一次交付缺陷:上一笔提交的信息写着「现取键数与值由 node 回读校验」, 但 `git show HEAD:package.json | grep -c '"type-check:e2e":'` 实取 **2**, 且 `test:all` 里并没有 type-check:e2e —— 也就是说那笔提交冻结的是 负责这块的并行同事的**中间态**:我在他的文件还没写完时就 git add 了它, 而我自己的 sed 去重与后来的终稿都留在了工作树里,没进提交。 ⇒ 提交信息的断言必须以被提交的内容复算,不能以工作树的读数代替 HEAD 的读数。 管理归零(口径,写进 lessons-learned 供后续复用):**并行分工下不许提交别人 owns 的在途文件**; 要提交就先取得该分工的完成回执,或改为在提交后立即用 `git show HEAD:` 复算信息里的每条断言。 现在工作树即终稿:type-check:e2e 键唯一、test:all 已并入它。 读数:node 回读 scripts 键数与重复键(重复 = 0 才 exit 0)⇒ PKG_CHECK=0; `npm run type-check:e2e` EXIT=0。 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a1fae4e..f69fb57 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "lint": "eslint", "type-check": "tsc --noEmit", "type-check:e2e": "tsc --noEmit -p e2e/tsconfig.json", - "type-check:e2e": "tsc --noEmit -p e2e/tsconfig.json", "preview": "next start -p 3000", "test": "npm run test:functional && npm run test:visual:all", "test:unit": "jest", @@ -47,6 +46,7 @@ "test:e2e:mobile:accessibility": "cd e2e && npx playwright test --grep @mobile.*@accessibility", "test:mutation": "rm -rf .stryker-tmp && npx stryker run", "test:mutation:quick": "rm -rf .stryker-tmp && npx stryker run --mutate 'src/lib/utils.ts'", + "test:all": "npm run type-check && npm run type-check:e2e && npm run lint && npm run test:coverage && npm run test:integration:real && npm run check:a11y && npm run check:visual && npm run test:e2e:fast && npm run test:security:headers", "check:contrast": "tsx scripts/utils/check-color-contrast.ts", "check:headings": "tsx scripts/utils/check-heading-hierarchy.ts", "check:brand-token": "tsx scripts/utils/check-brand-text-token.ts",