mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: don't error if Deno.bench() or Deno.test() are used in run subcommand (#14946)
This commit is contained in:
parent
215f3d4c8e
commit
d39094913e
6 changed files with 42 additions and 0 deletions
|
@ -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!(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue