From 9a7700da62837dbbcf1f7fa58c15dc9f081cc087 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 12 Aug 2025 20:11:14 -0700 Subject: [PATCH] test: skip test-watch-mode inspect when no inspector The test for watch mode with inspect fails when the inspector is not available (such as when configured with `--without-ssl`). This commit skips the test in such cases. PR-URL: https://github.com/nodejs/node/pull/59440 Reviewed-By: Daeyeon Jeong Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow Reviewed-By: Ruben Bridgewater --- test/sequential/test-watch-mode.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sequential/test-watch-mode.mjs b/test/sequential/test-watch-mode.mjs index bb8b8953514..f0a7d62e560 100644 --- a/test/sequential/test-watch-mode.mjs +++ b/test/sequential/test-watch-mode.mjs @@ -671,7 +671,7 @@ console.log(values.random); ]); }); - it('should run when `--watch --inspect`', async () => { + it('should run when `--watch --inspect`', { skip: !process.features.inspector }, async () => { const file = createTmpFile(); const args = ['--watch', '--inspect', file]; const { stdout, stderr } = await runWriteSucceed({ file, watchedFile: file, watchFlag: null, args });