test-js-with-puppeteer: Run with node --experimental-strip-types.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-12 21:49:49 -08:00
committed by Tim Abbott
parent 45de69465a
commit 26c72bf7ec
2 changed files with 3 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import assert from "node:assert/strict";
import "css.escape";
import path from "node:path";
import timersPromises from "node:timers/promises";
import * as url from "node:url";
import ErrorStackParser from "error-stack-parser";
import type {Browser, ConsoleMessage, ConsoleMessageLocation, ElementHandle, Page} from "puppeteer";
@@ -11,7 +12,7 @@ import StackTraceGPS from "stacktrace-gps";
import {test_credentials} from "../../../var/puppeteer/test_credentials.js";
const root_dir = path.resolve(__dirname, "../../..");
const root_dir = url.fileURLToPath(new URL("../../..", import.meta.url));
const puppeteer_dir = path.join(root_dir, "var/puppeteer");
type Message = Record<string, string | boolean> & {