summaryrefslogtreecommitdiff
path: root/cli/tools/jupyter
diff options
context:
space:
mode:
authorHajime-san <41257923+Hajime-san@users.noreply.github.com>2024-08-20 10:27:36 +0900
committerGitHub <noreply@github.com>2024-08-20 01:27:36 +0000
commit19bcb40059f6ba730b6d05d8edf005c6b40f6ff8 (patch)
treee7c60d8957a8609199a3dad24455518cc36fac32 /cli/tools/jupyter
parent4f49f703c10afcde7155baac2b494fa6670c0115 (diff)
feat(cli/tools): add a subcommand `--hide-stacktraces` for test (#24095)
Diffstat (limited to 'cli/tools/jupyter')
-rw-r--r--cli/tools/jupyter/mod.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/cli/tools/jupyter/mod.rs b/cli/tools/jupyter/mod.rs
index 7e88f92c2..14fcbd72c 100644
--- a/cli/tools/jupyter/mod.rs
+++ b/cli/tools/jupyter/mod.rs
@@ -11,6 +11,7 @@ use crate::tools::repl;
use crate::tools::test::create_single_test_event_channel;
use crate::tools::test::reporters::PrettyTestReporter;
use crate::tools::test::TestEventWorkerSender;
+use crate::tools::test::TestFailureFormatOptions;
use crate::CliFactory;
use deno_core::anyhow::bail;
use deno_core::anyhow::Context;
@@ -142,8 +143,15 @@ pub async fn kernel(
})?;
repl_session.set_test_reporter_factory(Box::new(move || {
Box::new(
- PrettyTestReporter::new(false, true, false, true, cwd_url.clone())
- .with_writer(Box::new(TestWriter(stdio_tx.clone()))),
+ PrettyTestReporter::new(
+ false,
+ true,
+ false,
+ true,
+ cwd_url.clone(),
+ TestFailureFormatOptions::default(),
+ )
+ .with_writer(Box::new(TestWriter(stdio_tx.clone()))),
)
}));