WICG / navigation-api

The new navigation API provides a new interface for navigations and session history, with a focus on single-page application navigations.
https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-api
484 stars 30 forks source link

Navigation-api - Test/Jest #269

Closed KhotR closed 8 months ago

KhotR commented 8 months ago

Any pointers on how to mock navigation.addEventListener('navigate'.... Please note, that i am using this in typescript and had to add //ts-ignore

domenic commented 8 months ago

I'm not sure; this seems like a question for Stack Overflow, as it's not a bug report with the spec.