Skip to content

Commit

Permalink
refactor: use package name for base temp directory (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Feb 5, 2018
1 parent 20a7a1c commit 4dc6776
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ suite('init', () => {
let packageJson

setup('work directory', async () => {
workDir = path.join(os.tmpdir(), `cli-${Date.now()}`)
workDir = path.join(
os.tmpdir(),
`${process.env.npm_package_name}${Date.now()}`
)
await fs.mkdirs(workDir)

originalDir = process.cwd()
Expand Down

0 comments on commit 4dc6776

Please sign in to comment.