Open its-dibo opened 3 years ago
when running the following code with node file.js it works, but when running the same code with jest it just runs continuously
node file.js
jest
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 ?
when running the following code with
node file.js
it works, but when running the same code withjest
it just runs continuouslyconsole displays '====1===', but doesn't display '===2==='