swapped to playwrights image

This commit is contained in:
Core 2022-02-01 12:08:52 +00:00
parent bc42eac153
commit 0d1d13ec6d
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
3 changed files with 8 additions and 5 deletions

View file

@ -3,7 +3,9 @@ jobs:
build: build:
working_directory: ~/Cider working_directory: ~/Cider
docker: docker:
- image: circleci/node:16 - image: mcr.microsoft.com/playwright:focal
environment:
NODE_ENV: development
steps: steps:
- checkout - checkout
- run: - run:

View file

@ -6,7 +6,8 @@ import * as fs from "fs";
test("Launch electron app", async () => { test("Launch electron app", async () => {
const paths = { const paths = {
"main": join(__dirname, "../../build/main"), "mainBuild": join(__dirname, "../../build/"),
"main": join(__dirname, "../main"),
"root": join(__dirname, "../../"), "root": join(__dirname, "../../"),
} }
@ -14,7 +15,7 @@ test("Launch electron app", async () => {
console.log(fs.readdirSync(paths.main)) console.log(fs.readdirSync(paths.main))
const electronApp = await electron.launch({ args: [paths.main], cwd: paths.root }); const electronApp = await electron.launch({ args: [paths.mainBuild] });
const appPath = await electronApp.evaluate(async ({ app }) => { const appPath = await electronApp.evaluate(async ({ app }) => {
// This runs in the main Electron process, parameter here is always // This runs in the main Electron process, parameter here is always

View file

@ -18,6 +18,6 @@
] ]
}, },
"include": [ "include": [
"src/**/*" "src/main/*"
] ]
} }