diff options
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 59a777d40..0eea21b04 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -1819,6 +1819,13 @@ impl<'a> CheckOutputIntegrationTest<'a> { actual = strip_ansi_codes(&actual).to_string(); + // deno test's output capturing flushes with a zero-width space in order to + // synchronize the output pipes. Occassionally this zero width space + // might end up in the output so strip it from the output comparison here. + if args.get(0) == Some(&"test") { + actual = actual.replace('\u{200B}', ""); + } + let expected = if let Some(s) = self.output_str { s.to_owned() } else { |