mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Set NODE_ENV programmatically
This commit is contained in:
@ -67,8 +67,8 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "NODE_ENV=test playwright test",
|
||||
"test:debug": "DEBUG=pw:browser* NODE_ENV=test playwright test",
|
||||
"test": "playwright test",
|
||||
"test:debug": "DEBUG=pw:browser* playwright test",
|
||||
"start": "electron .",
|
||||
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
|
||||
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
|
||||
|
||||
@ -3,6 +3,8 @@ const path = require("path");
|
||||
const { _electron: electron } = require("playwright");
|
||||
const { test, expect } = require("@playwright/test");
|
||||
|
||||
process.env.NODE_ENV = "test";
|
||||
|
||||
const appPath = path.resolve(__dirname, "..");
|
||||
|
||||
test("YouTube Music App - With default settings, app is launched and visible", async () => {
|
||||
|
||||
Reference in New Issue
Block a user