diff --git a/packages/jest-environment-puppeteer/src/constants.js b/packages/jest-environment-puppeteer/src/constants.js index 8138f67a..73426c85 100644 --- a/packages/jest-environment-puppeteer/src/constants.js +++ b/packages/jest-environment-puppeteer/src/constants.js @@ -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}`)