forked from martpie/next-transpile-modules
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest-puppeteer.config.js
46 lines (45 loc) · 1.31 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 webpack5AppPath = 'src/__tests__/__apps__/webpack-4/app';
const webpack5SymlinksAppPath = 'src/__tests__/__apps__/webpack-4-symlinks/app';
const pnpmAppPath = 'src/__tests__/__apps__/pnpm';
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 ${webpack5AppPath} run start --port 3503`,
launchTimeout: 20000,
port: 3503,
},
{
command: `yarn --cwd ${webpack5SymlinksAppPath} run start --port 3504`,
launchTimeout: 20000,
port: 3504,
},
{
command: `yarn --cwd ${pnpmAppPath} run start --port 3505`,
launchTimeout: 20000,
port: 3505,
},
],
};