Files
infocom-systems-design/node_modules/pino/test/esm/esm.mjs
2025-10-03 22:27:28 +03:00

13 lines
323 B
JavaScript

import t from 'tap'
import pino from '../../pino.js'
import helper from '../helper.js'
const { sink, check, once } = helper
t.test('esm support', async ({ equal }) => {
const stream = sink()
const instance = pino(stream)
instance.info('hello world')
check(equal, await once(stream, 'data'), 30, 'hello world')
})