test: clarify unit fast forced routing assertion · openclaw/openclaw@05f117a
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -103,7 +103,10 @@ describe("unit-fast vitest lane", () => {
|
103 | 103 | expect(unitFastTestFiles).toContain(file); |
104 | 104 | expect(isUnitFastTestFile(file)).toBe(true); |
105 | 105 | } |
106 | | -expect(forcedAnalysis.every((entry) => entry.forced && entry.unitFast)).toBe(true); |
| 106 | +const unroutedForcedFiles = forcedAnalysis |
| 107 | +.filter((entry) => !entry.forced || !entry.unitFast) |
| 108 | +.map((entry) => ({ file: entry.file, forced: entry.forced, unitFast: entry.unitFast })); |
| 109 | +expect(unroutedForcedFiles).toEqual([]); |
107 | 110 | }); |
108 | 111 | |
109 | 112 | it("keeps broad audit candidates separate from automatically routed unit-fast tests", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。