import { assert } from "@std/assert"; import { decode } from "@commontools/utils/encoding"; import { runDenoWebTest } from "./utils.ts"; Deno.test("config is applied", async function () { const { success, stdout, stderr } = await runDenoWebTest( "project-with-config", ); const stdoutText = decode(stdout); const stderrText = decode(stderr); assert(success, "test successfully ran, applying chrome flags"); assert(/LOG FROM TEST/.test(stdoutText), "console output propagated"); assert(/deno run/.test(stderrText), "stderr has deno task run"); assert( /experimentalDecorators/.test(stderrText), "stderr has compiler options warning", ); assert(stderrText.split("\n").length === 3, "stderr has no other messages"); assert(stderrText.split("\n")[2] === "", "stderr has no other messages"); });