Skip to content

Commit

Permalink
feat: support multiple processes on same machine (#103)
Browse files Browse the repository at this point in the history
Put PID in ws endpoint file.
  • Loading branch information
Seun Ogedengbe authored and gregberge committed Aug 15, 2018
1 parent e454973 commit 4d37d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-environment-puppeteer/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import path from 'path'
import os from 'os'

export const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup')
export const WS_ENDPOINT_PATH = path.join(DIR, 'wsEndpoint')
export const WS_ENDPOINT_PATH = path.join(DIR, `wsEndpoint-${process.pid}`)

0 comments on commit 4d37d17

Please sign in to comment.