The callback function passed into mockIf() should be an async function. I followed this example down to the letter but it wouldn't work until I put an async in front of the callback - evidently there is a function somewhere in the stack that requires it.
The callback function passed into mockIf() should be an async function. I followed this example down to the letter but it wouldn't work until I put an async in front of the callback - evidently there is a function somewhere in the stack that requires it.