pino/test/internals/version.test.js
Cangit bd2fb33597
chore: use node: imports (#2003)
* chore: use node: imports

* missing esm style import
2024-07-12 06:48:44 -04:00

16 lines
371 B
JavaScript

'use strict'
const fs = require('node:fs')
const path = require('node:path')
const t = require('tap')
const test = t.test
const pino = require('../..')()
test('should be the same as package.json', t => {
t.plan(1)
const json = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json')).toString('utf8'))
t.equal(pino.version, json.version)
})