Skip to content

Commit

Permalink
Set NODE_ENV programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch committed Sep 4, 2022
1 parent 1f5f597 commit 3f3df09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3f3df09

Please sign in to comment.