MCPcopy Create free account
hub / github.com/BridgeAR/safe-stable-stringify / runNode

Function runNode

test-modules.js:17–21  ·  view source on GitHub ↗
(args, options)

Source from the content-addressed store, hash-verified

15const { version } = require('./package.json')
16
17function runNode (args, options) {
18 // TAP's process tracker adds a deprecated loader to ESM consumers on Node 26.
19 const nodeArgs = Number(process.versions.node.split('.')[0]) >= 26 ? ['--disable-warning=DEP0205', ...args] : args
20 return execFileAsync(process.execPath, nodeArgs, options)
21}
22
23/**
24 * @param {string} directory

Callers 3

testModuleEntryPointsFunction · 0.85
testBundlersFunction · 0.85
testTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected