summaryrefslogtreecommitdiff
path: root/cli/lsp/testing/execution.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-06-24 12:00:53 +0200
committerGitHub <noreply@github.com>2022-06-24 12:00:53 +0200
commitd39094913e91e5193f63459d9c5ca6ddc7779477 (patch)
tree597f66d8637644abf2a10422cf7abb35ea3c5598 /cli/lsp/testing/execution.rs
parent215f3d4c8e5f694bc6341ca5307b8a3794a32de0 (diff)
fix: don't error if Deno.bench() or Deno.test() are used in run subcommand (#14946)
Diffstat (limited to 'cli/lsp/testing/execution.rs')
-rw-r--r--cli/lsp/testing/execution.rs5
1 files changed, 5 insertions, 0 deletions
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!(),