mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:44:47 +00:00
test: tolerate sparse Testbox file scans
This commit is contained in:
@@ -313,6 +313,9 @@ function listTrackedSourceFiles(options: SourceFileCollectorOptions): string[] |
|
||||
if (!/\.(?:[cm]?ts|[cm]?js|tsx|jsx)$/u.test(line) || line.endsWith(".d.ts")) {
|
||||
return false;
|
||||
}
|
||||
if (!fs.existsSync(resolve(REPO_ROOT, line))) {
|
||||
return false;
|
||||
}
|
||||
const parts = line.split("/");
|
||||
return !parts.some(
|
||||
(part) => part === "node_modules" || part === "dist" || part === "coverage",
|
||||
|
||||
Reference in New Issue
Block a user