Skip to content

Commit

Permalink
chore: Use default Chromium binary in M1 Mac tests (#15371)
Browse files Browse the repository at this point in the history
On M1 Macs, we're able to use the Chromium binary that Puppeteer
downloads as part of its install step.
  • Loading branch information
btmills committed Nov 30, 2021
1 parent 4940cc5 commit 94b2a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karma.conf.js
Expand Up @@ -2,7 +2,7 @@
const os = require("os");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");

if (os.arch() === "arm64") {
if (os.platform === "linux" && os.arch() === "arm64") {

// For arm64 architecture, install chromium-browser using "apt-get install chromium-browser"
process.env.CHROME_BIN = "/usr/bin/chromium-browser";
Expand Down

0 comments on commit 94b2a8b

Please sign in to comment.