SamVerschueren/listr-verbose-renderer

Rendering without the timestamp

Arhane opened this issue · 1 comments

There is a problem when testing is neeeded.

I assert the output through jest snapshots. And when there is a timestamp in snapshot, the snapshots are always different.

Diff between a snapshot and a real output

I suggest to add an option when there is no timestamp in the console output

You could've worked around it by providing an space to the dateFormat option :). Not ideally, I know. That's why you can now set dateFormat: false and it will hide the timestamp entirely. Just reinstall Listr and it will automatically pick up the latest verbose renderer.