Skip to content

Commit a70c05d

Browse files
committed
Delete screenshots after upload
1 parent 88e9650 commit a70c05d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/screenshot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export async function captureScreenshots(ctx: Context): Promise<Record<string,a
113113
if (ctx.options.parallel) await captureScreenshotsAsync(ctx, staticConfig, browsers);
114114
else await captureScreenshotsSync(ctx, staticConfig, browsers);
115115

116+
utils.delDir(`screenshots/${staticConfig.name.toLowerCase().replace(/\s/g, '_')}`);
116117
output += (`${chalk.gray(staticConfig.name)} ${chalk.green('\u{2713}')}\n`);
117118
ctx.task.output = output;
118119
capturedScreenshots++;

0 commit comments

Comments
 (0)