test: skip test-watch-mode inspect when no inspector · nodejs/node@9a7700d

Original file line numberDiff line numberDiff line change

@@ -671,7 +671,7 @@ console.log(values.random);

671671

]);

672672

});

673673
674-

it('should run when `--watch --inspect`', async () => {

674+

it('should run when `--watch --inspect`', { skip: !process.features.inspector }, async () => {

675675

const file = createTmpFile();

676676

const args = ['--watch', '--inspect', file];

677677

const { stdout, stderr } = await runWriteSucceed({ file, watchedFile: file, watchFlag: null, args });