I am currently utilizing angular 8 along with Jest for unit testing. My challenge lies in adding a listener for the 'transitionend' event on an element, and I'm struggling to find a way to simulate/mock this event using Jest.
this.animatedElement.nativeElement.addEventListener('transitionend', () => {
this.transitionEnded = true;
});
My objective is to write a unit test that validates this.transitionEnded
as true