Forráskód Böngészése

report(tdd): web-4091 17:25 双端Jest有界子集(fe energy/notification 2套件16例=16过/0红/0跳 EXIT0;cfc-web 承袭P-430-2通道不可达 --listTests EXIT1 jsdom缺失;探针 health 200/307B、根 / 200/70553B)

E2E Test Bot 54 perce
szülő
commit
b81dc6ddb4

+ 68 - 0
docs/tdd/orchestration/report-exec-web-4091-2026-11-30-1725.md

@@ -0,0 +1,68 @@
+# 测试执行汇报 · web-4091(本机 frontend)· 2026-11-30 17:25 档(双端 Jest 有界子集 + 静态探活)
+
+- 节点:`web-4091` = 本机 opencode(`d:/cfc`,cfclub 主工作树,单任务不并发)
+- 基线:开局 `git pull --rebase` → fast-forward `919822406..b611f3e9d`(负责人 1652 报告 + cfc-web changelog auto-bump,无 src 逻辑改动);收口前再 pull
+- 前情:14:25 轮(`report-exec-web-4091-2026-11-30-1425.md`)实测 fe 有界 3 套件 53 例 = 50过/0红/3跳(aiyunyi/report-upload 系);本档按本轮目标切换为 **energy / notification 相关** 有界子集
+- 实测时刻:2026-11-30 17:23~17:25(本机)
+
+## 一、依赖探活(通道可达性,P-430-2 口径延续)
+
+| 轨 | 证据 | 判定 |
+|---|---|---|
+| cfc-web | `D:\cfc\cfc-web\node_modules` 不存在(Test-Path=False) | 依赖缺失 → **通道不可达** |
+| cfc-frontend | `node_modules` = 34 字节 tracked 桩文件(坏链·承袭) | 经可复用基建可达 |
+
+可复用基建(零安装,沿用 15:39 档):`D:\cfc\tests\node_modules\jest\bin\jest.js`(jest 29.7.0)+ `D:\cfc\.r689_exec\jest.fe.contract.config.js`(@babel/preset-env 绝对路径注入,已验存在)。cfc-web 无 node_modules,未安装依赖。
+
+## 二、套件名 + 命令 + 实测数字(cfc-frontend 有界子集:energy / notification 各 1 套件)
+
+```
+cwd: D:\cfc\cfc-frontend
+node D:\cfc\tests\node_modules\jest\bin\jest.js \
+  --config D:\cfc\.r689_exec\jest.fe.contract.config.js \
+  --testPathPattern '(exerciseTypes|quickCompleteOverdue)' \
+  --json --outputFile D:\cfc\.r689_exec\jest_fe_1648.json
+```
+
+实测(EXIT=0,Time 3.213s;json 读回 UTF-8 校验 16/0/0):
+
+| 套件 | 关联域 | 通过 | 失败 | 跳过 |
+|---|---|---|---|---|
+| `utils/exerciseTypes.test.js`(运动类型公共模块) | 能量/身维度 | 13 | 0 | 0 |
+| `pages/index-home.quickCompleteOverdue.test.js`(过期打卡提示分支) | 通知/提醒 | 3 | 0 | 0 |
+| **合计(2 套件)** | — | **16** | **0** | **0** |
+
+- 控制台实收:`Test Suites: 2 passed, 2 total` / `Tests: 16 passed, 16 total` / `Snapshots: 0 total`。
+- 0 跳过 / 0 红。13:25 后无新增 energy/notification 契约冲突(本轮覆盖的 `exerciseTypes`、`index-home.quickCompleteOverdue` 契约源未变)。
+
+## 三、红例清单
+
+**本轮 0 红例**(2/2 套件全绿,无失败断言原文可录)。
+
+## 四、承袭项(通道不可达,未实测)
+
+| 项 | 处置 | 来源 |
+|---|---|---|
+| **cfc-web 有界子集(能量/维度/通知设置)** | 通道不可达(node_modules 缺失)。`--listTests` 实证:`node D:\cfc\tests\node_modules\jest\bin\jest.js --config D:\cfc\cfc-web\jest.config.js --listTests` → **EXIT=1**,错误首行 `Test environment jest-environment-jsdom cannot be found.`(jest ≥28 起 jsdom 需单独安装,随 node_modules 一并缺失)。未安装、未伪造。 | P-430-2(R418 起 11:00/12:30/13:25/14:25 轮 §一 延续) |
+| 预期但未执行的 cfc-web 套件 | `FamilyWorkbench.dimensions.spec.js`(维度分值)/ `Users.reminderConfigDailyEnabled.contract.spec.js`(通知设置)/ `ExerciseTypeConfig.contract.spec.js`(能量/运动类型配置)— 属目标域但通道不可达 | 本档派生 |
+
+`npx jest --ci --silent`(字面命令)在无本地 node_modules 时触发 npx 网络拉取 → 违反「零安装/不重复尝试安装」,故以可复用 jest 二进制取证,未触发下载。
+
+## 五、静态探针(匿名·无凭据,仅环境证据,不冒充业务用例)
+
+| 探针 | 结果 | 备注 |
+|---|---|---|
+| `POST https://cfc.etotem.com.cn/api/system/health` | **HTTP 200**,307B,0.217s;data:cpuLoad 1.85 / cpuCores 4 / javaVersion 17.0.19 / **startTime Mon Nov 30 13:26:08 CST 2026** / **uptime ~3小时58分** / **memUsed 334.7MB**(memUsagePercent 16.3% / memMax 2.00GB)/ **cpuUsagePercent 46.2%** | 后端通道正常 |
+| `GET https://cfc.etotem.com.cn/`(根,前端发布口径) | **HTTP 200**,70553B,0.128s | 根页面可达;`/frontend` 历史已 404(本档按口径改测根) |
+
+探针产物:`.r689_exec/health_probe_1648.json`、`.r689_exec/root_probe_1648.html`(未追踪)。
+
+## 六、commit sha 与纪律
+
+- 提交前再 `git pull --rebase`;本报告以精确 pathspec + `git add -f`(命中 `.gitignore` 系规则)入库,不含任何 `.r*` 未追踪产物/他人 WIP。
+- **commit sha**:报告 commit 于本报告提交时生成(`report(tdd): web-4091 17:25 双端Jest有界子集`,1 file),本行 sha 以 `git log --oneline -1 -- <本报告路径>` 回填,零伪造。
+- 纪律:未安装依赖、未改 src/main、未改 tests/e2e、未改 blockers.md、未改用例文件;凭据 0 使用(匿名探针);`.r689_exec/` 仅追加本轮 json/html 产物(未追踪)。
+
+## 七、一句话总结
+
+energy/notification 有界子集:cfc-frontend **2 套件 16 例 = 16 过 / 0 红 / 0 跳**(3.2s EXIT=0,可复用 jest 基建零安装);cfc-web 目标域(维度分值/通知设置/能量配置)**承袭·通道不可达**(node_modules 缺失,`--listTests` EXIT=1 `jest-environment-jsdom cannot be found`,未安装);静态探针 POST /api/system/health=200(307B·startTime 13:26:08 CST·uptime~3h58m·mem 334.7MB/16.3%·cpu 46.2%)、根 `/`=200(70553B)。