multi-progress-bars icon indicating copy to clipboard operation
multi-progress-bars copied to clipboard

How can I test the progress bar?

Open BioPhoton opened this issue 2 years ago • 2 comments

I integrated the lib successfully and now I want to write unit tests for it.

Are there any examples on how to do it?

BioPhoton avatar Oct 24 '23 09:10 BioPhoton

If you want to get the progress bar section of the buffer, you can use getBuffer(). I'd be happy to also return the console portion in addition to the progress section from that function. Then you can examine what's in the array and write tests.

On Tue, Oct 24, 2023, 04:29 Michael Hladky @.***> wrote:

I integrated the lib successfully and now I want to write unit tests for it.

Are there any examples on how to do it?

— Reply to this email directly, view it on GitHub https://github.com/kamiyo/multi-progress-bars/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWCYT5U2K5JG4NOOBQ56EDYA6DAVAVCNFSM6AAAAAA6NMMJDKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2TQOBWGAZDKOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kamiyo avatar Oct 25 '23 17:10 kamiyo

Is there a snippet in the docs explaining this?

BioPhoton avatar Apr 13 '24 22:04 BioPhoton