Skip to content

Commit

Permalink
test: use package.json main value
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Aug 14, 2024
1 parent 5015efe commit 7016169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/app.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Page, _electron as electron } from 'playwright';
import { ElectronApplication } from 'playwright-core';
import { test, expect } from '@playwright/test';
import { main } from '../package.json';

let appWindow: Page;
let appElectron: ElectronApplication;
Expand All @@ -21,7 +22,7 @@ test.beforeAll(async () => {
// Open Electron app from build directory
appElectron = await electron.launch({
args: [
'dist/main/index.js',
main,
...(process.env.CI === 'true' ? ['--no-sandbox'] : []),
'--enable-logging',
'--ignore-certificate-errors',
Expand Down

0 comments on commit 7016169

Please sign in to comment.