diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2020-03-15 09:34:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 10:34:24 +0100 |
commit | 64a35acd64f4a9aedfb52f6b364c229c6f7e4090 (patch) | |
tree | a2d3d68b3a072490c3d8e20333b07e165d3ab94b /cli/js/lib.deno.ns.d.ts | |
parent | a159165fe5f9fe53c3593af707888a7efc859d14 (diff) |
feat(cli/js/testing): Add TestDefinition::skip (#4351)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 13 |
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; } |