Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Upgrade: Updated puppeteer version to v4.0.0 (#13444)
Added architecture check to set CHROME_BIN path

Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev committed Jul 9, 2020
1 parent e951457 commit 748734f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion karma.conf.js
@@ -1,6 +1,13 @@
"use strict";
const os = require("os");

process.env.CHROME_BIN = require("puppeteer").executablePath();
if (os.arch() === "arm64") {

// For arm64 architecture, install chromium-browser using "apt-get install chromium-browser"
process.env.CHROME_BIN = "/usr/bin/chromium-browser";
} else {
process.env.CHROME_BIN = require("puppeteer").executablePath();
}

module.exports = function(config) {
config.set({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -122,7 +122,7 @@
"npm-license": "^0.3.3",
"nyc": "^15.0.1",
"proxyquire": "^2.0.1",
"puppeteer": "^2.1.1",
"puppeteer": "^4.0.0",
"recast": "^0.19.0",
"regenerator-runtime": "^0.13.2",
"shelljs": "^0.8.2",
Expand Down

0 comments on commit 748734f

Please sign in to comment.