deasync
deasync copied to clipboard
doesn't work with jest
when running the following code with node file.js
it works, but when running the same code with jest
it just runs continuously
console.log('===1===');
Promise.resolve().then((_data) => {
console.log('===2===');
data = _data;
done = true;
});
deasync.loopWhile(() => !done);
console displays '====1===', but doesn't display '===2==='
I'm having the same problem, is there any way to solve this or is there a fix already?
Same here, any workarounds are welcome
same on me
any solution ?