Empty given directories after each test.
Useful to clean local tmp locations.
Config:
hydro.set({
plugins: ['hydro-clean-dir'],
cleanDir: {
keepDot: true // keep dot files, default: false
paths: [join('test', 'tmp')] // array of paths to directories
}
});
npm install hydro-clean-dir
$ npm test
The MIT License (see LICENSE)