mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-09 17:51:46 +00:00
feat: enable the ESM for main (#3588)
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
|
||||
const path = require('node:path');
|
||||
|
||||
const { _electron: electron } = require('playwright');
|
||||
const { test, expect } = require('@playwright/test');
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import { _electron as electron } from 'playwright';
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const appPath = path.resolve(__dirname, '..');
|
||||
const appPath = path.resolve(import.meta.dirname, '..');
|
||||
|
||||
test('YouTube Music App - With default settings, app is launched and visible', async () => {
|
||||
const app = await electron.launch({
|
||||
|
||||
Reference in New Issue
Block a user