diff --git a/tools/gulp/tasks/screenshots.ts b/tools/gulp/tasks/screenshots.ts index 9b8152525aff..237bb9790688 100644 --- a/tools/gulp/tasks/screenshots.ts +++ b/tools/gulp/tasks/screenshots.ts @@ -94,7 +94,7 @@ function extractScreenshotName(fileName: string) { function getLocalScreenshotFiles(dir: string): string[] { return readdirSync(dir) - .filter((fileName: string) => !statSync(path.join(SCREENSHOT_DIR, fileName)).isDirectory()) + .filter((fileName: string) => !statSync(path.join(dir, fileName)).isDirectory()) .filter((fileName: string) => fileName.endsWith('.screenshot.png')); }