diff options
Diffstat (limited to 'tests/integration/run_tests.rs')
-rw-r--r-- | tests/integration/run_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs index 298ce1715..eab7b10ba 100644 --- a/tests/integration/run_tests.rs +++ b/tests/integration/run_tests.rs @@ -5140,3 +5140,17 @@ console.log(add(3, 4)); let output = test_context.new_command().args("run main.ts").run(); output.assert_matches_text("[WILDCARD]5\n7\n"); } + +#[test] +fn inspect_color_overwrite() { + let test_context = TestContextBuilder::new().build(); + let output = test_context + .new_command() + .skip_strip_ansi() + .split_output() + .env("NO_COLOR", "1") + .args("run run/inspect_color_overwrite.ts") + .run(); + + assert_eq!(output.stdout(), "foo\u{1b}[31mbar\u{1b}[0m\n"); +} |