import { type EvaluateFunction, launch } from "@astral/astral"; export async function testWeb(evalFn: EvaluateFunction): Promise { const url = "http://localhost:3000/testing/index.html"; await using browser = await launch(); await using page = await browser.newPage(url); return await page.evaluate(evalFn); }