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]The test function that will be tested when this step is executed. The function can take an argument which will provide information about the current step's context.
§
ignore?: boolean
[src]If truthy the current test step will be ignored.
This is a quick way to skip over a step, but also can be used for conditional logic, like determining if an environment feature is present.
§
sanitizeOps?: boolean
[src]Check that the number of async completed operations after the test step is the same as number of dispatched operations. This ensures that the code tested does not start async operations which it then does not await. This helps in preventing logic errors and memory leaks in the application code.
Defaults to the parent test or step's value.