diff --git a/.circleci/config.yml b/.circleci/config.yml index a8c75a6b..932578c6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,9 @@ jobs: - run: name: Install Dependencies command: yarn install --immutable + - run: + name: Install Playwright + command: yarn playwright install --with-deps - save_cache: name: Save Yarn Package Cache key: yarn-packages-{{ checksum "yarn.lock" }} diff --git a/src/__tests__/base.test.ts b/src/__tests__/base.test.ts index 2d0d7027..90725579 100644 --- a/src/__tests__/base.test.ts +++ b/src/__tests__/base.test.ts @@ -1,20 +1,23 @@ import { _electron as electron } from "playwright"; import { test, expect } from "@playwright/test"; -import { join } from "path"; +import { resolve } from "path"; import * as fs from "fs"; test("Launch electron app", async () => { const paths = { - "main": join(__dirname, "../../build/main"), - "root": join(__dirname, "../../"), + "mainBuild": resolve(__dirname, "../../build/"), + "main": resolve(__dirname, "../main"), + "root": resolve(__dirname, "../../"), + "cwd": __dirname, + "processcwd": process.cwd() } console.log(paths) console.log(fs.readdirSync(paths.main)) - const electronApp = await electron.launch({ args: [paths.main], 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 diff --git a/src/main/base/app.ts b/src/main/base/app.ts index 2a6d13a9..908f93e0 100644 --- a/src/main/base/app.ts +++ b/src/main/base/app.ts @@ -238,9 +238,6 @@ export class AppEvents { } }) - console.log("THISHI ISFJDKIASKJDBKDJSFDLJ { this.setTray(true) }) diff --git a/tsconfig.json b/tsconfig.json index ab9a3a6c..ce990f01 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,6 +18,6 @@ ] }, "include": [ - "src/**/*" + "src/main/*" ] -} \ No newline at end of file +}