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.
process.env.JEST_WORKER_ID
1 parent ec4294d commit 11dfbdeCopy full SHA for 11dfbde
jest/runInTempDirectory.js
@@ -5,8 +5,8 @@ import rimraf from 'rimraf'
5
6
export default function(callback) {
7
return new Promise(resolve => {
8
- const timestamp = new Date().valueOf()
9
- const tmpPath = path.resolve(__dirname, `../__tmp_${timestamp}`)
+ const workerId = process.env.JEST_WORKER_ID
+ const tmpPath = path.resolve(__dirname, `../__tmp_${workerId}`)
10
const currentPath = process.cwd()
11
12
rimraf.sync(tmpPath)
0 commit comments