(config, filename = 'version-config.json')
| 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({ |
no test coverage detected
searching dependent graphs…