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 <rlau@redhat.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
Adam Majer authored and Michaël Zasso committed 2024-05-08 07:12:43 +02:00
1 parent ce7a751ad1
commit 968fe6a8b1
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -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,
@@ -5,6 +5,7 @@
const common = require('../common');
common.skipIfInspectorDisabled();
common.skipIfDumbTerminal();
if (process.argv[2] === 'child') {
const stream = require('stream');