1'use strict'; 2 3const assert = require('node:assert'); 4 5const { expectedPort, expectedInitialPort, expectedHost } = process.env; 6const debugOptions = 7 require('internal/options').getOptionValue('--inspect-port'); 8 9if ('expectedPort' in process.env) { 10 assert.strictEqual(process.debugPort, +expectedPort); 11} 12 13if ('expectedInitialPort' in process.env) { 14 assert.strictEqual(debugOptions.port, +expectedInitialPort); 15} 16 17if ('expectedHost' in process.env) { 18 assert.strictEqual(debugOptions.host, expectedHost); 19} 20