From ba4eb5f0337dc9402ea9fb751530861b079d6f91 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Fri, 4 Feb 2022 09:52:41 +0000 Subject: [PATCH] trying out what circleci support said --- .circleci/config.yml | 5 ++++- src/__tests__/base.test.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a3062c9c..592f2381 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: working_directory: ~/Cider docker: - - image: circleci/node:16 + - image: circleci/node:16-browsers steps: - checkout - run: @@ -32,6 +32,9 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get update -y sudo apt-get install -y wine32 + - run: + name: Base Functionality Testing + command: yarn test - store_test_results: path: test-results - run: diff --git a/src/__tests__/base.test.ts b/src/__tests__/base.test.ts index 05fb087e..90725579 100644 --- a/src/__tests__/base.test.ts +++ b/src/__tests__/base.test.ts @@ -6,7 +6,7 @@ import * as fs from "fs"; test("Launch electron app", async () => { const paths = { - "mainBuild": resolve(__dirname, "../../dist/"), + "mainBuild": resolve(__dirname, "../../build/"), "main": resolve(__dirname, "../main"), "root": resolve(__dirname, "../../"), "cwd": __dirname, @@ -17,7 +17,7 @@ test("Launch electron app", async () => { console.log(fs.readdirSync(paths.main)) - const electronApp = await electron.launch({ args: ['dist/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