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.
2 parents b68f7ee + 11dfbde commit a7aeddeCopy full SHA for a7aedde
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 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