deasync icon indicating copy to clipboard operation
deasync copied to clipboard

doesn't work with jest

Open its-dibo opened this issue 2 years ago • 4 comments

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==='

its-dibo avatar Nov 05 '21 13:11 its-dibo

I'm having the same problem, is there any way to solve this or is there a fix already?

victorreinor avatar Feb 25 '22 18:02 victorreinor

Same here, any workarounds are welcome

shmuel-krakower avatar Jul 03 '22 08:07 shmuel-krakower

same on me

ttxs25830 avatar Aug 17 '22 17:08 ttxs25830

any solution ?

radiorz avatar Aug 04 '23 01:08 radiorz