log when using external chrome!
This commit is contained in:
parent
9a2f309486
commit
3876577218
1 changed files with 3 additions and 1 deletions
4
start.js
4
start.js
|
@ -36,7 +36,9 @@ async function runTests() {
|
||||||
console.log("running tests ...");
|
console.log("running tests ...");
|
||||||
const options = {};
|
const options = {};
|
||||||
if (process.env.CHROME_PATH) {
|
if (process.env.CHROME_PATH) {
|
||||||
options.executablePath = process.env.CHROME_PATH;
|
const path = process.env.CHROME_PATH;
|
||||||
|
console.log(`(using external chrome/chromium at ${path}, make sure it's compatible with puppeteer)`);
|
||||||
|
options.executablePath = path;
|
||||||
}
|
}
|
||||||
global.browser = await puppeteer.launch(options);
|
global.browser = await puppeteer.launch(options);
|
||||||
const page = await helpers.newPage();
|
const page = await helpers.newPage();
|
||||||
|
|
Loading…
Reference in a new issue