570087ea94
* The testing tsconfig.json inherits from the base TS config. * A lot of type assertions have been inserted...a lot. * All testing utilities have migrated to TS. * text-diff is being replaced with diff for TS compatibility. * ProtocolError has been added to PuppeteerErrors and PuppeteerErrors is no longer a record (it's been frozen). * Fixes a small bug where null was an allowable media type in emulation (should be undefined).
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
(async () => {
|
|
const [, , puppeteerRoot, options] = process.argv;
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
const page = await browser.newPage();
|
|
await page.evaluate(() => {
|
|
return console.error('message from dumpio');
|
|
});
|
|
await page.close();
|
|
await browser.close();
|
|
})();
|