`;
})
.join('\n')}
`
);
// the file:// with an absolute path makes it clickable in some terminals
console.log(`\nsee: file://${path.resolve(indexName)}\n`);
await page.close();
await context.close();
// I have no idea why it's taking ~30 seconds for playwright to close.
console.log('-- [ done: waiting for browser to close ] --');
await browser.close();
}
main().catch(e => {
throw e;
});