From 598209e3540f711a85d400bb043e33c660e62e42 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 10 Aug 2025 19:58:58 -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. --- 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 bb8b895351493e..f0a7d62e560821 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 });