forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest-puppeteer.config.cjs
More file actions
26 lines (24 loc) · 824 Bytes
/
jest-puppeteer.config.cjs
File metadata and controls
26 lines (24 loc) · 824 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
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
server: {
command: `npm run start:client -- --port ${process.env["PORT"]}`,
port: process.env["PORT"],
launchTimeout: 10000,
usedPortAction: "error",
},
launch: {
args: [
// https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md#setting-up-chrome-linux-sandbox
"--no-sandbox",
"--disable-setuid-sandbox",
],
dumpio: process.env.FLUID_TEST_VERBOSE !== undefined, // output browser console to cmd line
// slowMo: 500, // slows down process for easier viewing
// Use chrome-headless-shell since some tests don't work as-is with the new headless mode.
// AB#7150: Remove this once we have fixed the tests.
headless: "shell",
},
};