Skip to content

Commit

Permalink
tests: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Jul 22, 2024
1 parent 6189261 commit a06d898
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tests/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ import jimp from 'jimp'
*/

test('launch ntfy-desktop', async () => {
const app = await electron.launch({ args: ['index.js'] })
const app = await electron.launch({
args: ['index.js'],
env: {
...process.env,
NODE_ENV: 'development',
},
});

await app.close()
})

Expand All @@ -33,7 +40,13 @@ test('launch ntfy-desktop', async () => {
*/

test('full load', async () => {
const app = await electron.launch({ args: ['index.js'] })
const app = await electron.launch({
args: ['index.js'],
env: {
...process.env,
NODE_ENV: 'development',
},
});

const appPath = await app.evaluate(async ({ app }) => {
return app.getAppPath();
Expand Down

0 comments on commit a06d898

Please sign in to comment.