fix: duplicate references for same signals (#1503)

This commit is contained in:
Marvin Hagemeister
2023-07-24 09:37:05 +00:00
committed by GitHub
parent 38d4b90091
commit 3c0657caa8
5 changed files with 66 additions and 36 deletions
+22
View File
@@ -0,0 +1,22 @@
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,
});