mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-06 06:10:43 +02:00
10 lines
381 B
JavaScript
10 lines
381 B
JavaScript
global.process = { __proto__: process, pid: 123456 }
|
|
Date.now = function () { return 1459875739796 }
|
|
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
|
|
const pino = require(require.resolve('./../../../'))
|
|
const log = pino({
|
|
prettyPrint: { errorProps: 'code,errno' }
|
|
})
|
|
const err = Object.assign(new Error('kaboom'), { code: 'ENOENT', errno: 1 })
|
|
log.error(err)
|