test: run REPL preview test regardless of terminal type

PR-URL: https://github.com/nodejs/node/pull/34798
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
This commit is contained in:
Rich Trott
2020-08-16 10:33:39 -07:00
committed by Anna Henningsen
parent 53eae0dafd
commit cc98103802

View File

@@ -7,8 +7,9 @@ const { Stream } = require('stream');
const { inspect } = require('util');
common.skipIfInspectorDisabled();
common.skipIfDumbTerminal();
// Ignore terminal settings. This is so the test can be run intact if TERM=dumb.
process.env.TERM = '';
const PROMPT = 'repl > ';
class REPLStream extends Stream {