mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-09 17:51:46 +00:00
feat: apply rollup 🚀 (#20)
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
const path = require('node:path');
|
||||
|
||||
const { _electron: electron } = require('playwright');
|
||||
const { test, expect } = require('@playwright/test');
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { _electron as electron } from 'playwright';
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const appPath = path.resolve(__dirname, '..');
|
||||
const appPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
|
||||
test('YouTube Music App - With default settings, app is launched and visible', async () => {
|
||||
const app = await electron.launch({
|
||||
@ -16,6 +16,7 @@ test('YouTube Music App - With default settings, app is launched and visible', a
|
||||
'--disable-gpu',
|
||||
'--whitelisted-ips=',
|
||||
'--disable-dev-shm-usage',
|
||||
'dist/index.js',
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user