Questions tagged [custom-event]
The custom-event tag has no usage guidance.
1
question
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....