summaryrefslogtreecommitdiff
path: root/cli/test_runner.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/test_runner.rs')
-rw-r--r--cli/test_runner.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/test_runner.rs b/cli/test_runner.rs
index 1e91d1c30..fa0da706b 100644
--- a/cli/test_runner.rs
+++ b/cli/test_runner.rs
@@ -82,11 +82,12 @@ pub fn render_test_file(
json!({ "failFast": fail_fast, "reportToConsole": !quiet, "disableLog": quiet })
};
- let run_tests_cmd = format!(
- "// @ts-ignore\nDeno[Deno.internal].runTests({});\n",
+ test_file.push_str("// @ts-ignore\n");
+
+ test_file.push_str(&format!(
+ "await Deno[Deno.internal].runTests({});\n",
options
- );
- test_file.push_str(&run_tests_cmd);
+ ));
test_file
}