MCPcopy Index your code
hub / github.com/nodejs/node / runConfig

Function runConfig

test/parallel/test-config-file.js:61–71  ·  view source on GitHub ↗
(config, filename = 'version-config.json')

Source from the content-addressed store, hash-verified

59 const currentMajor = Number(process.versions.node.split('.')[0]);
60
61 async function runConfig(config, filename = 'version-config.json') {
62 tmpdir.refresh();
63 const configPath = join(tmpdir.path, filename);
64 writeFileSync(configPath, JSON.stringify(config));
65
66 return spawnPromisified(process.execPath, [
67 '--no-warnings',
68 `--experimental-config-file=${configPath}`,
69 '-p', 'http.maxHeaderSize',
70 ]);
71 }
72
73 it('should accept a top-level config without nodeVersion', async () => {
74 const result = await runConfig({

Callers 1

Calls 4

writeFileSyncFunction · 0.85
joinFunction · 0.50
spawnPromisifiedFunction · 0.50
refreshMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…