pino-debug
pino-debug copied to clipboard
allows debug calls prior to instantiation
deletes debug module caches and reloads debug
Codecov Report
Merging #28 into master will decrease coverage by
8.00%. The diff coverage is54.54%.
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
- Coverage 98.00% 90.00% -8.00%
==========================================
Files 2 2
Lines 50 60 +10
==========================================
+ Hits 49 54 +5
- Misses 1 6 +5
| Impacted Files | Coverage Δ | |
|---|---|---|
| index.js | 86.95% <54.54%> (-10.27%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update eccac78...ae5acf7. Read the comment docs.
Good work, would you mind to add a unit test?
Hmmm. I'm not exactly sure what I'm doing wrong here. It's throwing within the test and failing, but not when I implement it in my project. Any thoughts?
test('allows calls to debug before calling pinoDebug', (t) => {
var debug = require('debug')('ns')
debug('test')
t.doesNotThrow(() => require('../'))
t.end()
})
Looking at this it makes it seem like we'd need an ESM compatible pino-debug and a CommonJS one.