mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Merge pull request #902 from CvX/test-collision
Avoid test collisions by using different directories in runInTempDirectory
This commit is contained in:
commit
a7aedde4ab
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user