Skip to content

Commit 97fa2d8

Browse files
committed
test(ui): name the walked source file apart from the fetch stub's path
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYmaapyPFdBwrb3SfFp
1 parent 28a9d57 commit 97fa2d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/PackageFormDialog.newAppStep-36748.test.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ const SRC = resolve(HERE, '../..');
450450

451451
function sourceFiles(dir: string): string[] {
452452
return readdirSync(dir).flatMap((entry) => {
453-
const path = join(dir, entry);
454-
if (statSync(path).isDirectory()) return sourceFiles(path);
455-
return /\.tsx?$/.test(entry) && !/\.test\.tsx?$/.test(entry) ? [path] : [];
453+
const entryFile = join(dir, entry);
454+
if (statSync(entryFile).isDirectory()) return sourceFiles(entryFile);
455+
return /\.tsx?$/.test(entry) && !/\.test\.tsx?$/.test(entry) ? [entryFile] : [];
456456
});
457457
}
458458

0 commit comments

Comments
 (0)