fix: island marker parsed as key marker (#1922)

This commit is contained in:
Marvin Hagemeister
2023-10-12 13:40:23 +02:00
committed by GitHub
parent 78b0b05fc3
commit 7d954584a6
5 changed files with 107 additions and 72 deletions
+13
View File
@@ -556,6 +556,19 @@ Deno.test("don't serialize keys for nodes outside islands or partials", async ()
});
});
Deno.test("doesn't confuse islands starting with 'key' with key marker", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",
async (page, address) => {
await page.goto(`${address}/keys_confusion`);
await page.waitForSelector(".island");
await page.click("button");
await waitForText(page, ".output", "1");
},
);
});
Deno.test("partial injection mode", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",