node/test/pseudo-tty
Ruben Bridgewater fa74d45e09
util: mark cwd grey while inspecting errors
This changes the util.inspect() output for errors in case stack
traces contain the current working directory in their trace.
If that's the case, the cwd part is marked grey to focus on the
rest of the path.

Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>

PR-URL: https://github.com/nodejs/node/pull/41082
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-07-31 09:45:13 +02:00
..
console-dumb-tty.js console: don't use ANSI escape codes when TERM=dumb 2019-03-21 23:32:59 +01:00
console-dumb-tty.out console: don't use ANSI escape codes when TERM=dumb 2019-03-21 23:32:59 +01:00
console_colors.js util: highlight stack frames 2019-04-15 17:30:50 +02:00
console_colors.out util: mark cwd grey while inspecting errors 2022-07-31 09:45:13 +02:00
no_dropped_stdio.js
no_dropped_stdio.out
no_interleaved_stdio.js
no_interleaved_stdio.out
pseudo-tty.status test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00
pty_helper.py tools: make pty_helper.py python3-compatible 2019-08-19 09:56:35 -07:00
readline-dumb-tty.js readline: support TERM=dumb 2019-03-21 23:33:55 +01:00
readline-dumb-tty.out readline: support TERM=dumb 2019-03-21 23:33:55 +01:00
ref_keeps_node_running.js
ref_keeps_node_running.out
repl-dumb-tty.js repl: implement reverse search 2019-12-25 11:16:38 +01:00
repl-dumb-tty.out repl: implement reverse search 2019-12-25 11:16:38 +01:00
stdin-setrawmode.js
stdin-setrawmode.out
test-assert-colors.js test: stricter assert color test 2020-02-09 13:39:55 +01:00
test-assert-colors.out
test-assert-no-color.js test: refactor test using assert instead of try/catch 2019-07-30 06:22:01 -07:00
test-assert-no-color.out test: assert diff no color 2018-11-13 13:32:56 -08:00
test-assert-position-indicator.js test: avoid deep comparisons with literals 2022-02-24 21:57:21 -05:00
test-assert-position-indicator.out test: add assert test for position indicator 2019-02-11 22:57:21 -08:00
test-async-wrap-getasyncid-tty.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
test-async-wrap-getasyncid-tty.out
test-fatal-error.js process: inspect error in case of a fatal exception 2019-05-16 12:50:05 +02:00
test-fatal-error.out util: mark cwd grey while inspecting errors 2022-07-31 09:45:13 +02:00
test-handle-wrap-hasref-tty.js test: rename handlewrap.hasref tests 2022-07-31 09:44:05 +02:00
test-handle-wrap-hasref-tty.out test: rename handlewrap.hasref tests 2022-07-31 09:44:05 +02:00
test-readable-tty-keepalive.js
test-readable-tty-keepalive.out
test-repl-external-module.js repl: check for NODE_REPL_EXTERNAL_MODULE 2019-10-11 12:33:40 -07:00
test-repl-external-module.out repl: check for NODE_REPL_EXTERNAL_MODULE 2019-10-11 12:33:40 -07:00
test-set-raw-mode-reset-process-exit.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-set-raw-mode-reset-process-exit.out
test-set-raw-mode-reset-signal.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-set-raw-mode-reset-signal.out
test-set-raw-mode-reset.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-set-raw-mode-reset.out
test-stderr-stdout-handle-sigwinch.js
test-stderr-stdout-handle-sigwinch.out console: lazy load process.stderr and process.stdout 2018-11-29 01:52:54 +08:00
test-stdin-write.js test: add stdin writable regression test 2018-10-04 09:20:25 -07:00
test-stdin-write.out test: add stdin writable regression test 2018-10-04 09:20:25 -07:00
test-stdout-read.in test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00
test-stdout-read.js process: allow reading from stdout/stderr sockets 2018-10-04 09:20:24 -07:00
test-stdout-read.out test: fix pty test hangs on aix 2019-07-15 00:12:38 +02:00
test-trace-sigint-disabled.js src,lib: make ^C print a JS stack trace 2020-01-28 13:52:27 +08:00
test-trace-sigint-disabled.out src,lib: make ^C print a JS stack trace 2020-01-28 13:52:27 +08:00
test-trace-sigint-on-idle.js test: fix flaky test-trace-sigint-on-idle 2020-02-09 22:16:23 +01:00
test-trace-sigint-on-idle.out src,lib: make ^C print a JS stack trace 2020-01-28 13:52:27 +08:00
test-trace-sigint.js test: enable no-empty ESLint rule 2022-03-14 09:32:21 -04:00
test-trace-sigint.out src,lib: make ^C print a JS stack trace 2020-01-28 13:52:27 +08:00
test-tty-color-support-warning-2.js tty: do not end in an infinite warning recursion 2020-02-09 13:39:56 +01:00
test-tty-color-support-warning-2.out test: make .out checks embedder-friendly 2020-09-05 13:38:08 -07:00
test-tty-color-support-warning.js tty: do not end in an infinite warning recursion 2020-02-09 13:39:56 +01:00
test-tty-color-support-warning.out test: make .out checks embedder-friendly 2020-09-05 13:38:08 -07:00
test-tty-color-support.js tty: truecolor check moved before 256 check 2019-11-28 00:53:55 +01:00
test-tty-color-support.out test: make .out checks embedder-friendly 2020-09-05 13:38:08 -07:00
test-tty-isatty.js tty: validate file descriptor to avoid int32 overflow 2021-03-23 11:02:03 +01:00
test-tty-isatty.out
test-tty-stdin-call-end.js test: add process.stdin.end() TTY regression test 2018-10-04 05:31:46 +02:00
test-tty-stdin-call-end.out test: add process.stdin.end() TTY regression test 2018-10-04 05:31:46 +02:00
test-tty-stdin-end.js
test-tty-stdin-end.out
test-tty-stdout-end.js test: remove unused uncaughtException handler 2019-01-27 20:45:42 +01:00
test-tty-stdout-end.out
test-tty-stdout-resize.js
test-tty-stdout-resize.out
test-tty-stream-constructors.js
test-tty-stream-constructors.out
test-tty-window-size.js
test-tty-window-size.out
test-tty-wrap.js
test-tty-wrap.out
testcfg.py test: run message and pseudo-tty tests in parallel 2021-05-17 09:11:27 +02:00