github
171 of 178 branches covered (96.07%)
Branch coverage included in aggregate %.
54 of 61 new or added lines in 4 files covered. (88.52%)
595 of 602 relevant lines covered (98.84%)
205845.24 hits per line
|
import { toRows } from './to-rows.js' |
|
|
|
1✔ |
|
const log = (timerified, { title = null } = {}) => {
|
|
|
const rows = toRows(timerified) |
16✔ |
|
|
16✔ |
|
if (['test'].includes(process.env.NODE_ENV)) |
16✔ |
|
return rows
|
|
NEW
|
|
× |
NEW
|
if (title)
|
× |
NEW
|
console.log('\n','\n', title, '\n', '-'.repeat(title.length)) |
× |
NEW
|
|
× |
NEW
|
console.table(rows) |
× |
NEW
|
|
× |
NEW
|
return rows
|
× |
|
} |
16✔ |
|
|
1✔ |
|
export { log }
|
1✔ |