From 3a3e93e87b0f5901c0afa1bbf651cf836b1e31f2 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Tue, 27 Jul 2021 22:53:35 +0800 Subject: [PATCH] build: resolve Apple Silicon chips more precisely --- jest-puppeteer.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest-puppeteer.config.js b/jest-puppeteer.config.js index 5dcb6dc..163ce8a 100644 --- a/jest-puppeteer.config.js +++ b/jest-puppeteer.config.js @@ -1,5 +1,5 @@ const path = require('path') -if (process.arch === 'arm64') { +if (process.arch === 'arm64' && process.platform === 'darwin') { require('dotenv').config({ path: '.env.arm.mac', })