test: make shared-token reload deterministic

This commit is contained in:
Peter Steinberger
2026-04-09 01:38:16 +01:00
parent 6688779d36
commit a9f831e065
3 changed files with 27 additions and 53 deletions

View File

@@ -29,6 +29,9 @@ function walkCodeFiles(dir: string, files: string[] = []): string[] {
if (!CODE_EXTENSIONS.has(path.extname(entry.name))) {
continue;
}
if (entry.name.startsWith("__rootdir_boundary_canary__.")) {
continue;
}
const relativePath = path.relative(repoRoot, fullPath).replaceAll(path.sep, "/");
if (
relativePath.includes("/test/") ||