-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathjest-puppeteer.config.cjs
More file actions
30 lines (29 loc) · 763 Bytes
/
jest-puppeteer.config.cjs
File metadata and controls
30 lines (29 loc) · 763 Bytes
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
const isDebugMode = process.env.NODE_OPTIONS && process.env.NODE_OPTIONS.includes("javascript-debugger");
module.exports = {
launch: {
dumpio: true,
headless: isDebugMode ? false : true,
slowMo: 10,
defaultViewport: null,
...(process.env.CHROME_PATH ? { executablePath: process.env.CHROME_PATH } : {}),
args: ["--no-sandbox", "--disable-setuid-sandbox"],
},
server: [
{
command: "npm run testground",
host: "0.0.0.0",
port: 3000,
launchTimeout: 120 * 1000,
usedPortAction: "ignore",
debug: false,
},
{
command: "npm run typesenseServer",
host: "0.0.0.0",
port: 8108,
launchTimeout: 60 * 1000,
usedPortAction: "ignore",
debug: false,
},
],
};