mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-03 03:33:21 -05:00
refactor(tests): instead of random temp dir names, use date
It is easier to debug when the folders are sorted
This commit is contained in:
@@ -15,7 +15,7 @@ const npmrc = [
|
||||
fs.writeFileSync(join(tmpPath, '.npmrc'), npmrc, 'utf-8')
|
||||
|
||||
module.exports = function prepare (pkg) {
|
||||
const pkgTmpPath = join(tmpPath, Math.random().toString())
|
||||
const pkgTmpPath = join(tmpPath, Number(new Date()).toString())
|
||||
mkdirp.sync(pkgTmpPath)
|
||||
const json = JSON.stringify(pkg || {})
|
||||
fs.writeFileSync(join(pkgTmpPath, 'package.json'), json, 'utf-8')
|
||||
|
||||
Reference in New Issue
Block a user