From d39094913e91e5193f63459d9c5ca6ddc7779477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 24 Jun 2022 12:00:53 +0200 Subject: fix: don't error if Deno.bench() or Deno.test() are used in run subcommand (#14946) --- cli/lsp/testing/execution.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/lsp') diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs index 4f4b9bf1f..03fdba63c 100644 --- a/cli/lsp/testing/execution.rs +++ b/cli/lsp/testing/execution.rs @@ -199,6 +199,11 @@ async fn test_specifier( }, ); + worker.js_runtime.execute_script( + &located_script_name!(), + r#"Deno[Deno.internal].enableTestAndBench()"#, + )?; + worker .execute_script( &located_script_name!(), -- cgit v1.2.3