swapped to playwrights image
This commit is contained in:
parent
bc42eac153
commit
0d1d13ec6d
3 changed files with 8 additions and 5 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -18,6 +18,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*"
|
"src/main/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue