Metadata "dirty"
The dirty
metadata disables decommissioning a temporary directory after action execution.
- Type:
boolean
Usage
Pass true
to the metadata to disable decommissioning:
(async () => {
await nikita
// Call an action with $tmpdir and $dirty
.call({
$dirty: true, $tmpdir: '/tmp/a_dir' }, () => true)
// Assert the temporary directory exists
.fs.assert('/tmp/a_dir')
})()