Skip to content

Commit 3f3df09

Browse files
committed
Set NODE_ENV programmatically
1 parent 1f5f597 commit 3f3df09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
}
6868
},
6969
"scripts": {
70-
"test": "NODE_ENV=test playwright test",
71-
"test:debug": "DEBUG=pw:browser* NODE_ENV=test playwright test",
70+
"test": "playwright test",
71+
"test:debug": "DEBUG=pw:browser* playwright test",
7272
"start": "electron .",
7373
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
7474
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",

tests/index.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const path = require("path");
33
const { _electron: electron } = require("playwright");
44
const { test, expect } = require("@playwright/test");
55

6+
process.env.NODE_ENV = "test";
7+
68
const appPath = path.resolve(__dirname, "..");
79

810
test("YouTube Music App - With default settings, app is launched and visible", async () => {

0 commit comments

Comments
 (0)