summaryrefslogtreecommitdiff
path: root/testing/mod.ts
diff options
context:
space:
mode:
authorNayeem Rahman <muhammed.9939@gmail.com>2019-09-28 14:33:17 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-09-28 09:33:17 -0400
commita472b6732dd37636b7b31128f53d3e6bcf531a73 (patch)
tree11fa3fb56917582c0c88c871e71ff212b39eb841 /testing/mod.ts
parentaf18093498c3fca103bd47305e447ddeda40d9a2 (diff)
Test runner v2 (denoland/deno_std#604)
Original: https://github.com/denoland/deno_std/commit/17a214bbd5b3a058a8126e9f7210992b1b52ba11
Diffstat (limited to 'testing/mod.ts')
-rw-r--r--testing/mod.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/mod.ts b/testing/mod.ts
index c8577770b..329e02895 100644
--- a/testing/mod.ts
+++ b/testing/mod.ts
@@ -348,7 +348,7 @@ async function runTestsSerial(
}
/** Defines options for controlling execution details of a test suite. */
-export interface RunOptions {
+export interface RunTestsOptions {
parallel?: boolean;
exitOnFail?: boolean;
only?: RegExp;
@@ -368,7 +368,7 @@ export async function runTests({
only = /[^\s]/,
skip = /^\s*$/,
disableLog = false
-}: RunOptions = {}): Promise<void> {
+}: RunTestsOptions = {}): Promise<void> {
const tests: TestDefinition[] = candidates.filter(
({ name }): boolean => only.test(name) && !skip.test(name)
);
@@ -415,7 +415,7 @@ export async function runTests({
*/
export async function runIfMain(
meta: ImportMeta,
- opts?: RunOptions
+ opts?: RunTestsOptions
): Promise<void> {
if (meta.main) {
return runTests(opts);