fix: don't error if Deno.bench() or Deno.test() are used in run subcommand (#14946)

This commit is contained in:
Bartek Iwańczuk 2022-06-24 12:00:53 +02:00 committed by GitHub
parent 215f3d4c8e
commit d39094913e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 0 deletions

View file

@ -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!(),