How do I use testing-library to fire React’s animationEnd event with a value for animationName?
I have a React + TypeScript project where I want to use Jest and testing-library to confirm that a div element is removed from the DOM after a CSS animation completes. However, the removal must only happen after an animation with the name “fadeOut” is completed.