test-tmp

1.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i test-tmp

Weekly Downloads

160

Version

1.2.1

License

MIT

Unpacked Size

4.57 kB

Total Files

6

Last publish

Collaborators

  • mafintosh