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);
});