Closed kindagonzo closed 5 months ago
Thanks for opening a PR! Can you please add a unit test?
Sure. I checked around in the test folder but I can't seem to find any tests referencing that function. Where would you like me to add a test?
You can test it via prettyFactory
(https://github.com/pinojs/pino-pretty/blob/9d89a596f492eb2efee1632f54be9bc9b93356f4/test/basic.test.js#L526) or add a new file altogether.
Can you help me out? I added the test and can run the suite fine with npm run test or npm run ci:
However, the pre-commit hook fails:
Any idea why?
It seems to be a transient issue. I ran it a few times and was finally able to commit.
Documentation notes that options.customColors can be either a string or object but objects are not currently supported in the code. From index.d.ts: /**
This change permits either strings or objects to be used.