We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fccfd58 commit ec4294dCopy full SHA for ec4294d
jest/runInTempDirectory.js
@@ -3,10 +3,10 @@ import path from 'path'
3
4
import rimraf from 'rimraf'
5
6
-const tmpPath = path.resolve(__dirname, '../__tmp')
7
-
8
export default function(callback) {
9
return new Promise(resolve => {
+ const timestamp = new Date().valueOf()
+ const tmpPath = path.resolve(__dirname, `../__tmp_${timestamp}`)
10
const currentPath = process.cwd()
11
12
rimraf.sync(tmpPath)
0 commit comments