Closed fdrobidoux closed 3 months ago
why you don't await the promises before and add to the mock just the returned data?
Please use the function based reply
or replyOnce
in that case.
.replyOnce(async function () {
return [200, await fetchGroups()]
});
I made the mistake of doing this, and it cost me a bunch of time :
Could it be possible to resolve Promises in the
transformRequest(data)
function inhandle_request.js
?Thanks!