Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jest/runInTempDirectory.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import path from 'path'

import rimraf from 'rimraf'

const tmpPath = path.resolve(__dirname, '../__tmp')

export default function(callback) {
return new Promise(resolve => {
const workerId = process.env.JEST_WORKER_ID
const tmpPath = path.resolve(__dirname, `../__tmp_${workerId}`)
const currentPath = process.cwd()

rimraf.sync(tmpPath)
Expand Down