TestStepDefinition$Typings extension
Properties
-
fn
↔ FutureOr<
void> Function(TestContext) -
Available on TestStepDefinition, provided by the TestStepDefinition$Typings extension
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.getter/setter pair - ignore ↔ bool?
-
Available on TestStepDefinition, provided by the TestStepDefinition$Typings extension
If truthy the current test step will be ignored.getter/setter pair - name ↔ String
-
Available on TestStepDefinition, provided by the TestStepDefinition$Typings extension
The name of the step.getter/setter pair - sanitizeExit ↔ bool?
-
Available on TestStepDefinition, provided by the TestStepDefinition$Typings extension
Ensure the test step does not prematurely cause the process to exit, for example via a call to {@linkcode Deno.exit}.getter/setter pair - sanitizeOps ↔ bool?
-
Available on TestStepDefinition, provided by the TestStepDefinition$Typings extension
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.getter/setter pair - sanitizeResources ↔ bool?
-
Available on TestStepDefinition, provided by the TestStepDefinition$Typings extension
Ensure the test step does not "leak" resources - like open files or network connections - by ensuring the open resources at the start of the step match the open resources at the end of the step.getter/setter pair