From 94b2a8b3d1f7d139dd6b06216a64727b7d5f009b Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Tue, 30 Nov 2021 01:07:24 -0500 Subject: [PATCH] chore: Use default Chromium binary in M1 Mac tests (#15371) On M1 Macs, we're able to use the Chromium binary that Puppeteer downloads as part of its install step. --- karma.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 05f1a1ceb6e..2c4c1d11ded 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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";