test-tmp

Get a fresh tmpdir for tests

MIT 10 个版本
安装
npm install test-tmp
yarn add test-tmp
pnpm add test-tmp
bun add test-tmp
README

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

版本列表
1.4.0 2025-01-22
1.3.1 2024-12-20
1.3.0 2024-09-06
1.2.1 2024-04-09
1.2.0 2024-02-14
1.1.1 2024-02-02
1.1.0 2024-01-16
1.0.2 2023-07-25
1.0.0 2023-06-27
0.0.0 2023-06-27