Questions tagged [custom-event]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
2k views

How to check the CustomEvent detail in a Jest test for an LWC?

I'm on my first day of writing Jest tests for one of our LWCs, and that component fires an event with some dates included as the event detail: @api get selectedDates() { return this....