Skip to content

Commit 0c2787c

Browse files
committed
remove setupBrowserPage for...of loop
1 parent c210e13 commit 0c2787c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: test/screenshot/screenshot.test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ const setupBrowserPage = (async () => {
2929
const { browser, page } = await openPage(await webpackCompile(BASE_SCREENSHOT_TEST));
3030
console.log('>>> post setupBrowserPage openPage log');
3131

32-
for (const filename of await fs.readdir(IMAGE_DIR)) {
33-
if (filename.endsWith('-old.png')) {
34-
await fs.unlink(`${ IMAGE_DIR }/${ filename }`);
35-
}
36-
}
32+
// for (const filename of await fs.readdir(IMAGE_DIR)) {
33+
// if (filename.endsWith('-old.png')) {
34+
// await fs.unlink(`${ IMAGE_DIR }/${ filename }`);
35+
// }
36+
// }
3737
console.log('>>> post setupBrowserPage for...of log');
3838

3939
await page.evaluate(() => {

0 commit comments

Comments
 (0)