release: WRNexusJS 0.7.0

This commit is contained in:
2026-08-01 10:04:42 +05:30
parent c54144f2e4
commit 87507edf59
207 changed files with 12607 additions and 679 deletions
+9 -5
View File
@@ -73,11 +73,15 @@ test("ignores cross-origin links (full navigation)", async () => {
test("ignores modified clicks so new-tab still works", async () => {
install(`<div id="app"><a href="/about" id="lnk">x</a></div>`);
win.document
.getElementById("lnk")
.dispatchEvent(
new win.MouseEvent("click", { bubbles: true, cancelable: true, button: 0, metaKey: true }),
);
const MouseEventConstructor = (win as unknown as { MouseEvent: typeof MouseEvent }).MouseEvent;
win.document.getElementById("lnk").dispatchEvent(
new MouseEventConstructor("click", {
bubbles: true,
cancelable: true,
button: 0,
metaKey: true,
}),
);
await flush();
expect(fetchCalls.length).toBe(0);
});
+4 -1
View File
@@ -73,7 +73,10 @@ test("component functions support formatted multiline assignments and ternaries"
increment.click();
expect(increment.textContent).toBe("1");
increment.dispatchEvent(new win.MouseEvent("click", { shiftKey: true }) as unknown as Event);
const MouseEventConstructor = (win as unknown as { MouseEvent: typeof MouseEvent }).MouseEvent;
increment.dispatchEvent(
new MouseEventConstructor("click", { shiftKey: true }) as unknown as Event,
);
expect(increment.textContent).toBe("11");
(win.document.getElementById("normalize") as unknown as HTMLElement).click();