From 1dce5dea0b3b85e06b3b72a812e9557a078f30cc Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 6 May 2024 14:14:22 +0200 Subject: [PATCH] test: skip some console tests on dumb terminal This adds two more tests to be skipped on systems with only a dumb terminal. See https://github.com/nodejs/node/pull/33165 for details. PR-URL: https://github.com/nodejs/node/pull/37770 Reviewed-By: Richard Lau Reviewed-By: Akhil Marsonya Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Moshe Atlow --- test/parallel/test-repl-mode.js | 4 +++- test/parallel/test-repl-strict-mode-previews.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-repl-mode.js b/test/parallel/test-repl-mode.js index 0cfcfba56bc8a5..aca8418904d082 100644 --- a/test/parallel/test-repl-mode.js +++ b/test/parallel/test-repl-mode.js @@ -1,9 +1,11 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const Stream = require('stream'); const repl = require('repl'); +common.skipIfDumbTerminal(); + const tests = [ testSloppyMode, testStrictMode, diff --git a/test/parallel/test-repl-strict-mode-previews.js b/test/parallel/test-repl-strict-mode-previews.js index 8da4029e186b3c..a05e11b39cf3ee 100644 --- a/test/parallel/test-repl-strict-mode-previews.js +++ b/test/parallel/test-repl-strict-mode-previews.js @@ -5,6 +5,7 @@ const common = require('../common'); common.skipIfInspectorDisabled(); +common.skipIfDumbTerminal(); if (process.argv[2] === 'child') { const stream = require('stream');