test: tolerate sparse Testbox file scans · openclaw/openclaw@09db089
vincentkoc
·
2026-05-17
·
via Recent Commits to openclaw:main
File tree
src/channels/plugins/contracts
| Original file line number | Diff line number | Diff line change |
|---|
@@ -313,6 +313,9 @@ function listTrackedSourceFiles(options: SourceFileCollectorOptions): string[] |
|
313 | 313 | if (!/\.(?:[cm]?ts|[cm]?js|tsx|jsx)$/u.test(line) || line.endsWith(".d.ts")) { |
314 | 314 | return false; |
315 | 315 | } |
| 316 | +if (!fs.existsSync(resolve(REPO_ROOT, line))) { |
| 317 | +return false; |
| 318 | +} |
316 | 319 | const parts = line.split("/"); |
317 | 320 | return !parts.some( |
318 | 321 | (part) => part === "node_modules" || part === "dist" || part === "coverage", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。