mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
@@ -1,4 +1,5 @@
|
||||
// @ts-check
|
||||
const chalk = require("chalk");
|
||||
const { join } = require("path");
|
||||
const { readFileSync } = require("fs");
|
||||
try {
|
||||
@@ -17,7 +18,6 @@ const playwright = require("playwright");
|
||||
const debugging = false;
|
||||
|
||||
(async () => {
|
||||
const chalk = (await import("chalk")).default;
|
||||
for (const browserType of ["chromium", "firefox"]) {
|
||||
const browser = await playwright[browserType].launch({ headless: !debugging });
|
||||
const context = await browser.newContext();
|
||||
|
||||
Reference in New Issue
Block a user