Skip to content

Commit d9aeab6

Browse files
fix tests
1 parent d7b5188 commit d9aeab6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

e2e/electron.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { test, expect } from '@playwright/test';
22
import { _electron as electron } from 'playwright';
33
import path from 'node:path';
4+
import { fileURLToPath } from 'node:url';
45

6+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
57
const mainPath = path.join(__dirname, '..', 'dist-electron', 'main.js');
68

79
test.describe('Electron app', () => {

0 commit comments

Comments
 (0)