From 7268a386d07aec244693043f9103f08f106f1226 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Tue, 1 Feb 2022 23:41:46 +0700 Subject: [PATCH] maybe do this? --- .circleci/config.yml | 3 +-- src/__tests__/base.test.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 30685898..a944dac7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,12 +33,11 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get update -y sudo apt-get install -y wine32 - sudo apt-get install -y xvfb - store_test_results: path: test-results - run: name: Base Functionality Test - command: yarn test + command: xvfb-run --auto-servernum npm run test - run: name: Generate Builds (Linux) command: yarn dist -l -p never diff --git a/src/__tests__/base.test.ts b/src/__tests__/base.test.ts index 1c21fcc2..90725579 100644 --- a/src/__tests__/base.test.ts +++ b/src/__tests__/base.test.ts @@ -17,7 +17,7 @@ test("Launch electron app", async () => { console.log(fs.readdirSync(paths.main)) - const electronApp = await electron.launch({ args: ['--enable-logging','--no-sandbox','build/index.js'], cwd: paths.root }); + const electronApp = await electron.launch({ args: ['build/index.js'], cwd: paths.root }); const appPath = await electronApp.evaluate(async ({ app }) => { // This runs in the main Electron process, parameter here is always