mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 21:04:45 +00:00
test: harden wsl2 fixtures
This commit is contained in:
@@ -33,7 +33,11 @@ function isProductionCodeFile(relativePath: string): boolean {
|
||||
}
|
||||
|
||||
function listGitCodeFiles(root: string): string[] | null {
|
||||
return listGitTrackedFiles({ repoRoot, pathspecs: root })?.filter(isProductionCodeFile) ?? null;
|
||||
return (
|
||||
listGitTrackedFiles({ repoRoot, pathspecs: root })
|
||||
?.filter(isProductionCodeFile)
|
||||
.filter((relativePath) => fs.existsSync(path.join(repoRoot, relativePath))) ?? null
|
||||
);
|
||||
}
|
||||
|
||||
function walkCodeFiles(dir: string, files: string[] = []): string[] {
|
||||
|
||||
Reference in New Issue
Block a user