Automate the copying/removing of temporary directories for your tape tests.
Usage
betamax(directory[, test])
Where directory
is the directory you want to copy to a temporary folder
for each test. Returns a test decorator that will handle creating and removing
the temporary directories as required:
var betamax =var test =var basic =
You might find it simpler to supply betamax
with tape's test
function, which will give you back a modified version to construct your tests with:
var betamax =var tape =var test =// You can pass tape's `test` method into// betamax to use it directly:
License
MIT. See LICENSE.md for details.