summaryrefslogtreecommitdiff
path: root/cli/test_runner.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-27 14:51:22 +0200
committerGitHub <noreply@github.com>2020-04-27 14:51:22 +0200
commit8e4333fd99bdc71020c4e2d135da8315f94d9763 (patch)
tree79b3f9eee4068058a13240c523cecbd0cc471739 /cli/test_runner.rs
parentdf0000ff0a3ce20292fe73b909cd31bd352d5266 (diff)
BREAKING: remove Deno.runTests() API (#4922)
Deno.runTests() interface is not yet good enough to be exposed publicly with stability guarantees. This commit removes public API related to testing: Deno.runTests() and Deno.TestMessage, but keeps them exposed on Deno.internal object so they can be used with "deno test" subcommand.
Diffstat (limited to 'cli/test_runner.rs')
-rw-r--r--cli/test_runner.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/test_runner.rs b/cli/test_runner.rs
index 2aa8427b2..0c2318052 100644
--- a/cli/test_runner.rs
+++ b/cli/test_runner.rs
@@ -78,7 +78,10 @@ pub fn render_test_file(
json!({ "failFast": fail_fast, "reportToConsole": !quiet, "disableLog": quiet })
};
- let run_tests_cmd = format!("Deno.runTests({});\n", options);
+ let run_tests_cmd = format!(
+ "(Deno as any)[Deno.symbols.internal].runTests({});\n",
+ options
+ );
test_file.push_str(&run_tests_cmd);
test_file