SamVerschueren/listr

Wrong output for default renderer.

ddemydenko opened this issue · 2 comments

const Listr = require('listr');

function fakeRequest(stallTime = 1000) {
  return new Promise(resolve => setTimeout(resolve, stallTime));
}

function checkForUpdate() {
  console.log('before listr');
  return new Listr([{
    title: 'Checking for new version', task: () => {
      return fakeRequest()
        .then(() => {
          console.log('first string');
          console.log('second string');
          return Promise.resolve();
        })
    }
  },], { renderer: 'default', concurrent: true })
    .run();
}

checkForUpdate();

What I expect:

before listr
first string
second string
✔ Checking for new version

What is actual input:

⠏ Checking for new version
first string
✔ Checking for new version

"second sting" is gone.

Do you think it's the same problem as this one #122 ?