Wrong output for default renderer.
ddemydenko opened this issue · 2 comments
ddemydenko commented
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 commented
Do you think it's the same problem as this one #122 ?
ddemydenko commented
I am sure problem the same. Try to duplicate console.log or add another one
console.log message. It will be work, but the last one always will be
hidden.
ср, 24 окт. 2018 г., 13:08 Raphaël Huchet <notifications@github.com>:
… Do you think it's the same problem as mine: #121
<#121>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#121 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AepoFO9msw2ApusN93qXYHZs7gdEKdw5ks5uoDwRgaJpZM4X3Y15>
.