Skip to main content

sanitizeResources

property Deno.TestStepDefinition.sanitizeResources

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.

Defaults to the parent test or step's value.

boolean
Back to top