Skip to content

Commit cca616c

Browse files
committed
@vercel/nft no longer compat with node v18
1 parent b7a0d98 commit cca616c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/dd-trace/test/openfeature/file-tracing.spec.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@ const { mkdirSync, mkdtempSync, rmSync, symlinkSync } = require('node:fs')
66
const { tmpdir } = require('node:os')
77
const path = require('node:path')
88

9-
const { nodeFileTrace } = require('@vercel/nft')
109
const { describe, it } = require('mocha')
1110

11+
const { NODE_MAJOR } = require('../../../../version')
12+
1213
const repoRoot = path.resolve(__dirname, '../../../..')
1314
const expectedPackageFiles = [
1415
'node_modules/@datadog/openfeature-node-server/package.json',
1516
'node_modules/@datadog/flagging-core/package.json',
1617
'node_modules/spark-md5/package.json',
1718
]
1819

20+
if (NODE_MAJOR < 20) {
21+
describe.skip('OpenFeature file tracing (requires @vercel/nft, which needs Node.js >= 20)')
22+
return
23+
}
24+
25+
// eslint-disable-next-line import/order
26+
const { nodeFileTrace } = require('@vercel/nft')
27+
1928
/**
2029
* @param {string} entrypoint
2130
*/

0 commit comments

Comments
 (0)