refactor: make this repo a Deno workspace (#2719)

This commit is contained in:
Luca Casonato
2024-12-10 13:41:18 +01:00
committed by GitHub
parent f1b6b4c401
commit 4a25ac385f
13 changed files with 133 additions and 1744 deletions
+12 -2
View File
@@ -92,7 +92,12 @@ export async function withBrowserApp(
}, await app.handler());
const browser = await launch({
args: ["--window-size=1280,720"],
args: [
"--window-size=1280,720",
...((Deno.env.get("CI") && Deno.build.os === "linux")
? ["--no-sandbox"]
: []),
],
headless: !Deno.args.includes("--headful"),
});
@@ -113,7 +118,12 @@ export async function withBrowser(fn: (page: Page) => void | Promise<void>) {
const aborter = new AbortController();
try {
const browser = await launch({
args: ["--window-size=1280,720"],
args: [
"--window-size=1280,7201",
...((Deno.env.get("CI") && Deno.build.os === "linux")
? ["--no-sandbox"]
: []),
],
headless: !Deno.args.includes("--headful"),
});