ya
This commit is contained in:
parent
7f7e276cf0
commit
5adaf41b04
1 changed files with 2 additions and 4 deletions
|
@ -5,12 +5,10 @@ import * as fs from "fs";
|
||||||
|
|
||||||
test("Launch electron app", async () => {
|
test("Launch electron app", async () => {
|
||||||
|
|
||||||
const aa = fs.readdirSync(join(__dirname, "../../build"))
|
console.log(fs.readdirSync(join(__dirname, "../../build/main")))
|
||||||
|
|
||||||
console.log(aa)
|
|
||||||
console.log(__dirname)
|
console.log(__dirname)
|
||||||
|
|
||||||
const electronApp = await electron.launch({ args: [join(__dirname, "../../build/index.js")] });
|
const electronApp = await electron.launch({ args: [join(__dirname, "../../build/main")] });
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue