Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/tests/signal_test.ts

The next-gen web framework.
Extremely Popular
Go to Latest
File
import { waitForText, withPageName } from "./test_utils.ts";
Deno.test({ name: "serializes shared signal references", async fn() { await withPageName("./tests/fixture/main.ts", async (page, address) => { await page.goto(`${address}/signal_shared`); await page.waitForSelector("#counter-1");
await page.click("#b-counter-1"); await waitForText(page, "#counter-1 p", "2"); await waitForText(page, "#counter-2 p", "2");
await page.click("#b-counter-2"); await waitForText(page, "#counter-1 p", "3"); await waitForText(page, "#counter-2 p", "3"); }); },
sanitizeOps: false, sanitizeResources: false,});