open-wc / open-wc

Open Web Components: guides, tools and libraries for developing web components.

Home Page:https://open-wc.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oneDefaultPreventedEvent not available

thomashigginbotham opened this issue · comments

Expected behavior

The oneDefaultPreventedEvent helper function can be used as documented.

Actual Behavior

The helper function doesn't exist.

Additional context

According to https://open-wc.org/docs/testing/helpers/#events-with-preventdefault, there is a helper function called oneDefaultPreventedEvent that calls event.preventDefault() to prevent interruptions when page navigation occurs. However, if I import { oneDefaultPreventedEvent } from '@open-wc/testing' I get an error saying the member doesn't exist.