Testing that an AsyncFunction was called
Primary LanguageJavaScript
https://stackoverflow.com/questions/71480489/how-to-spy-on-an-asyncfunction-with-jest