Skip to content

Commit fb7947f

Browse files
tinayuangaommalerba
authored andcommitted
fix screenshot directory (#4254)
1 parent 7428c49 commit fb7947f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/gulp/tasks/screenshots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function extractScreenshotName(fileName: string) {
9494

9595
function getLocalScreenshotFiles(dir: string): string[] {
9696
return readdirSync(dir)
97-
.filter((fileName: string) => !statSync(path.join(SCREENSHOT_DIR, fileName)).isDirectory())
97+
.filter((fileName: string) => !statSync(path.join(dir, fileName)).isDirectory())
9898
.filter((fileName: string) => fileName.endsWith('.screenshot.png'));
9999
}
100100

0 commit comments

Comments
 (0)