I am using angular 8 and Jest for unit testing. I have added a listener for 'transitionend' on the element, but I haven't been able to figure out how to trigger/mock the transitionend event with Jest
this.animatedElement.nativeElement.addEventListener('transitionend', () => {
this.transitionEnded = true;
});
I am trying to create a unit test that tests this.transitionEnded is true