Deno.TestContext
interface TestContext {
name
: string;
origin
: string;
parent?
: TestContext;
step(
t: TestStepDefinition)
: Promise<boolean>;
}
Properties
name
: string
The current test name.
origin
: string
File Uri of the current test code.
parent?
: TestContext
Parent test context.
Methods
step(
t: TestStepDefinition)
: Promise<boolean>
Run a sub step of the parent test or step. Returns a promise that resolves to a boolean signifying if the step completed successfully. The returned promise never rejects unless the arguments are invalid. If the test was ignored the promise returns false
.
Run a sub step of the parent test or step. Returns a promise that resolves to a boolean signifying if the step completed successfully. The returned promise never rejects unless the arguments are invalid. If the test was ignored the promise returns false
.
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.TestContext