summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts13
1 files changed, 9 insertions, 4 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index daae8b09d..2c3a9aef4 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -17,6 +17,7 @@ declare namespace Deno {
export interface TestDefinition {
fn: TestFunction;
name: string;
+ skip?: boolean;
}
/** Register a test which will be run when `deno test` is used on the command
@@ -32,12 +33,16 @@ declare namespace Deno {
* when `Deno.runTests` is used */
export function test(name: string, fn: TestFunction): void;
+ enum TestStatus {
+ Passed = "passed",
+ Failed = "failed",
+ Skipped = "skipped"
+ }
+
interface TestResult {
- passed: boolean;
name: string;
- skipped: boolean;
- hasRun: boolean;
- duration: number;
+ status: TestStatus;
+ duration?: number;
error?: Error;
}