summaryrefslogtreecommitdiff
path: root/cli/lsp/testing
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-08-02 18:38:10 +0200
committerGitHub <noreply@github.com>2023-08-02 18:38:10 +0200
commit029bdf0cd55e96f393614ca566d57e4330ac9135 (patch)
treeccc9f64068c70fcae1fcceba3920b375bcc19ce2 /cli/lsp/testing
parentd9c85e016f054fd3b6c68a54213e7c0ad8c3a8f4 (diff)
feat(cli): Add dot test reporter (#19804)
This commit adds a "dot" reporter to "deno test" subcommand, that can be activated using "--dot" flag. It provides a concise output using: - "." for passing test - "," for ignored test - "!" for failing test User output is silenced and not printed to the console. In non-TTY environments each result is printed on a separate line.
Diffstat (limited to 'cli/lsp/testing')
-rw-r--r--cli/lsp/testing/execution.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs
index ce8c8b5ac..6a5474ea7 100644
--- a/cli/lsp/testing/execution.rs
+++ b/cli/lsp/testing/execution.rs
@@ -700,7 +700,7 @@ impl LspTestReporter {
let err_string = format!(
"Uncaught error from {}: {}\nThis error was not caught from a test and caused the test runner to fail on the referenced module.\nIt most likely originated from a dangling promise, event/timeout handler or top-level code.",
origin,
- test::format_test_error(js_error)
+ test::fmt::format_test_error(js_error)
);
let messages = as_test_messages(err_string, false);
for t in stack.iter().rev() {