Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong output for default renderer. #121

Open
ddemydenko opened this issue Oct 24, 2018 · 2 comments
Open

Wrong output for default renderer. #121

ddemydenko opened this issue Oct 24, 2018 · 2 comments

Comments

@ddemydenko
Copy link

ddemydenko commented Oct 24, 2018

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.

@rap2hpoutre
Copy link
Contributor

rap2hpoutre commented Oct 24, 2018

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

@ddemydenko
Copy link
Author

ddemydenko commented Oct 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants