test: tighten unit coverage assertions · openclaw/openclaw@6bafd97
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -134,14 +134,15 @@ describe("unit vitest config", () => {
|
134 | 134 | it("scopes default coverage to source files owned by the unit lane", () => { |
135 | 135 | const unitConfig = createUnitVitestConfig({}); |
136 | 136 | const testConfig = requireTestConfig(unitConfig); |
137 | | -expect(testConfig.coverage?.include).toEqual( |
| 137 | +const coverageInclude = testConfig.coverage?.include; |
| 138 | +expect(coverageInclude).toEqual( |
138 | 139 | expect.arrayContaining([ |
139 | 140 | "src/commitments/runtime.ts", |
140 | 141 | "src/media-generation/runtime-shared.ts", |
141 | 142 | "src/web-search/runtime.ts", |
142 | 143 | ]), |
143 | 144 | ); |
144 | | -expect(testConfig.coverage?.include).not.toEqual( |
| 145 | +expect(coverageInclude).not.toEqual( |
145 | 146 | expect.arrayContaining(["src/markdown/render.ts", "src/security/audit-workspace-skills.ts"]), |
146 | 147 | ); |
147 | 148 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。