Projektstart
This commit is contained in:
12
backend/node_modules/pino/test/esm/esm.mjs
generated
vendored
Normal file
12
backend/node_modules/pino/test/esm/esm.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
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')
|
||||
})
|
||||
Reference in New Issue
Block a user