test: tighten cli runner absence assertion · openclaw/openclaw@6eddcb8
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -158,6 +158,10 @@ function requireRegexMatch(value: string, pattern: RegExp): RegExpExecArray {
|
158 | 158 | return match; |
159 | 159 | } |
160 | 160 | |
| 161 | +async function expectPathMissing(targetPath: string): Promise<void> { |
| 162 | +await expect(fs.access(targetPath)).rejects.toMatchObject({ code: "ENOENT" }); |
| 163 | +} |
| 164 | + |
161 | 165 | describe("runCliAgent spawn path", () => { |
162 | 166 | it("formats redacted CLI resume diagnostics without exposing raw session ids", () => { |
163 | 167 | const logLine = buildCliExecLogLine({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。