From b7e1c45cc06387a1a05700ebac1cb2d8d8dc23d3 Mon Sep 17 00:00:00 2001 From: Brandon Mills Date: Mon, 29 Nov 2021 03:24:05 -0500 Subject: [PATCH] chore: Use default Chromium binary in M1 Mac tests 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";