test-tmp

Get a fresh tmpdir for tests

MIT License

Downloads
1.4K
Stars
2

test-tmp

Get a fresh tmpdir for tests

npm install test-tmp

Usage

const test = require('brittle')
const tmp = require('test-tmp')

test('my test', async function (t) {
  const dir = await tmp(t)
  console.log('fresh dir for this test', dir)
})

License

MIT

Package Rankings
Top 11.25% on Npmjs.org