From 270e87d9db48e983671848257eb360b4c7405d31 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 1 Apr 2020 09:47:23 +0100 Subject: refactor(cli/js/testing): Reduce testing interfaces (#4451) * Reduce "testing" interfaces * Use a callback instead of a generator for Deno.runTests() * Default RunTestsOptions::reportToConsole to true * Compose TestMessage into a single interface --- cli/js/deno.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cli/js/deno.ts') diff --git a/cli/js/deno.ts b/cli/js/deno.ts index 2c1d2a5b7..ca323fc95 100644 --- a/cli/js/deno.ts +++ b/cli/js/deno.ts @@ -115,7 +115,13 @@ export { utimeSync, utime } from "./ops/fs/utime.ts"; export { version } from "./version.ts"; export { writeFileSync, writeFile, WriteFileOptions } from "./write_file.ts"; export const args: string[] = []; -export { test, runTests, TestEvent, ConsoleTestReporter } from "./testing.ts"; +export { + RunTestsOptions, + TestDefinition, + TestMessage, + runTests, + test, +} from "./testing.ts"; // These are internal Deno APIs. We are marking them as internal so they do not // appear in the runtime type library. -- cgit v1.2.3