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 2024-05-06 14:14:22 +02:00 committed by GitHub
parent 982f6ad516
commit f76b28f2cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

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,

View File

@ -5,6 +5,7 @@
const common = require('../common');
common.skipIfInspectorDisabled();
common.skipIfDumbTerminal();
if (process.argv[2] === 'child') {
const stream = require('stream');