Closed rowild closed 2 years ago
Converted to draft, because I wonder if this is a use case, for which a test would be helpful...
Sorry if this is a newly introduced bug. I haven't looked into it yet, but a test case to reproduce it would be welcome.
@chrisn No problem! (Not sure if it is new, I think it didn't work before, either...) However, the problem is me and tests. I simply do not know how to write one. I must leave this decision to you – I am very sorry about not being able to help here!
I have fixed the bug and added some test cases. The issue was that the logger was not being correctly initialised. It shouldn't be necessary to provide a logger
config option, so I removed that change.
Thank you very much, @chrisn !
It seems that without
logger
defined in theoptions
object, an error is thrown:Adding a
logger
definition makes the example work again.Before submitting a pull request, please read our contributor guidelines.
Pull requests that don't follow the guidelines risk not being accepted.