forked from wellcometrust/next-plugin-transpile-modules
-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
jest-puppeteer.config.js
46 lines (45 loc) · 1.28 KB
/
jest-puppeteer.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const npmBasicAppPath = 'src/__tests__/__apps__/npm-basic';
const yarnWorkspacesAppPath = 'src/__tests__/__apps__/yarn-workspaces/app';
const yarnWorkspacesSymlinksAppPath = 'src/__tests__/__apps__/yarn-workspaces-symlinks/app';
const pnpmAppPath = 'src/__tests__/__apps__/pnpm';
const swcAppPath = 'src/__tests__/__apps__/swc/app';
const withAppDirAppPath = 'src/__tests__/__apps__/with-app-dir/app';
module.exports = {
launch: {
headless: true,
slowMo: false,
devtools: true,
},
server: [
{
command: `npm run start --prefix=${npmBasicAppPath} -- --port 3500`,
launchTimeout: 20000,
port: 3500,
},
{
command: `yarn --cwd ${yarnWorkspacesAppPath} run start --port 3501`,
launchTimeout: 20000,
port: 3501,
},
{
command: `yarn --cwd ${yarnWorkspacesSymlinksAppPath} run start --port 3502`,
launchTimeout: 20000,
port: 3502,
},
{
command: `yarn --cwd ${pnpmAppPath} run start --port 3505`,
launchTimeout: 20000,
port: 3505,
},
{
command: `yarn --cwd ${swcAppPath} run start --port 3506`,
launchTimeout: 20000,
port: 3506,
},
{
command: `yarn --cwd ${withAppDirAppPath} run start --port 3507`,
launchTimeout: 20000,
port: 3507,
},
],
};