fix(config): 补上 1c0ce5f4 声称做了却没做进去的两处(package.json 重复键与 test:all 口径)
自报一次交付缺陷:上一笔提交的信息写着「现取键数与值由 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:<file>` 复算信息里的每条断言。 现在工作树即终稿:type-check:e2e 键唯一、test:all 已并入它。 读数:node 回读 scripts 键数与重复键(重复 = 0 才 exit 0)⇒ PKG_CHECK=0; `npm run type-check:e2e` EXIT=0。
This commit is contained in:
1 parent
1c0ce5f458
commit
0e17327ef0
1 file changed
+1
-1
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user