diff --git a/package.json b/package.json index bd5d7e4c1..a0f25e9c5 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@types/node": "^25.0.3", "airtap": "5.0.0", "bole": "^5.0.5", - "borp": "^0.21.0", + "borp": "^1.0.0", "bunyan": "^1.8.14", "debug": "^4.3.4", "docsify-cli": "^4.4.4", diff --git a/test/transport/core.transpiled.test.ts b/test/transport/core.transpiled.test.mjs similarity index 91% rename from test/transport/core.transpiled.test.ts rename to test/transport/core.transpiled.test.mjs index 804d29b81..9b42414fa 100644 --- a/test/transport/core.transpiled.test.ts +++ b/test/transport/core.transpiled.test.mjs @@ -1,12 +1,16 @@ import test from 'node:test' import assert from 'node:assert' import * as os from 'node:os' -import { join } from 'node:path' +import { join, dirname } from 'node:path' import fs from 'node:fs' import * as url from 'node:url' -import { watchFileCreated } from '../helper' -import pino from '../../' +import { fileURLToPath } from 'node:url' +import { watchFileCreated } from '../helper.js' +import pino from '../../pino.js' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = dirname(__filename) const readFile = fs.promises.readFile @@ -14,7 +18,7 @@ const { pid } = process const hostname = os.hostname() // A subset of the test from core.test.js, we don't need all of them to check for compatibility -function runTests (esVersion: string): void { +function runTests (esVersion) { test(`(ts -> ${esVersion}) pino.transport with file`, async (t) => { const destination = join( os.tmpdir(),