TestDefinition$Typings extension

on

Properties

fn FutureOr<void> Function(TestContext)
getter/setter pair
ignore bool?
If truthy the current test step will be ignored.
getter/setter pair
name String
The name of the test.
getter/setter pair
only bool?
If at least one test has only set to true, only run tests that have only set to true and fail the test suite.
getter/setter pair
permissions Object?
Specifies the permissions that should be used to run the test.
getter/setter pair
sanitizeExit bool?
Ensure the test case does not prematurely cause the process to exit, for example via a call to {@linkcode Deno.exit}.
getter/setter pair
sanitizeOps bool?
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?
Ensure the test step does not "leak" resources - like open files or network connections - by ensuring the open resources at the start of the test match the open resources at the end of the test.
getter/setter pair