Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.TestStepDefinition

interface TestStepDefinition {
fn: (t: TestContext) => void | Promise<void>;
ignore?: boolean;
name: string;
sanitizeExit?: boolean;
sanitizeOps?: boolean;
sanitizeResources?: boolean;
}

§Properties

§
fn: (t: TestContext) => void | Promise<void>
[src]
§
ignore?: boolean
[src]
§
name: string
[src]

The current test name.

§
sanitizeExit?: boolean
[src]

Ensure the test step does not prematurely cause the process to exit, for example via a call to Deno.exit. Defaults to the parent test or step's value.

§
sanitizeOps?: boolean
[src]

Check that the number of async completed ops after the test step is the same as number of dispatched ops. Defaults to the parent test or step's value.

§
sanitizeResources?: boolean
[src]

Ensure the test step does not "leak" resources - ie. the resource table after the test has exactly the same contents as before the test. Defaults to the parent test or step's value.