add test case covering islands that return null (#1203)
Just a small addition to my previous PR. It wasn't obvious for me that PR #1172 also fixed #1129. I guess that issue should be covered by a separate test
This commit is contained in:
@@ -205,3 +205,20 @@ Deno.test({
|
||||
async function getIslandParentTextContent(page: Page) {
|
||||
return await page.$eval("#island-parent", (el: Element) => el.textContent);
|
||||
}
|
||||
|
||||
Deno.test({
|
||||
name: "island that returns `null`",
|
||||
|
||||
async fn(_t) {
|
||||
await withPage(async (page) => {
|
||||
await page.goto("http://localhost:8000/islands/returning_null", {
|
||||
waitUntil: "networkidle2",
|
||||
});
|
||||
|
||||
await page.waitForSelector(".added-by-use-effect");
|
||||
});
|
||||
},
|
||||
|
||||
sanitizeOps: false,
|
||||
sanitizeResources: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user