re: An async/await gotcha VIEW POST

TOP OF THREAD FULL DISCUSSION
re: The use case was to create a wrapper for testing purposes, so that we could target parts of the code to wait for in our tests rather than using tim...
 

One could always make new Promise and resolve inside the function that should be 'wrapped as async', and mock it as such. I don't event think setTimeout is necessary. I look forward to hearing test case elaboration as well. :)

code of conduct - report abuse