-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving Electron tests #5738
Improving Electron tests #5738
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙂
@@ -39,11 +42,15 @@ app.on("ready", () => { | |||
mainWindow = new BrowserWindow({ | |||
show: false, | |||
webPreferences: { | |||
nodeIntegration: true, | |||
contextIsolation: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is false
required for these tests (regarding the context isolation)?
"test:ci:main": "mocha-remote --reporter mocha-github-actions-reporter --id main tsx runner.ts main", | ||
"test:ci:renderer": "mocha-remote --reporter mocha-github-actions-reporter --id renderer tsx runner.ts renderer", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the earlier issue we saw with including/excluding --prefix
. Is it safe to not include that here?
@@ -45,16 +45,16 @@ | |||
}, | |||
"devDependencies": { | |||
"@realm/mocha-reporter": "*", | |||
"cmake-js": "^6.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this replaced with something else or just not needed anymore?
What, How & Why?
Improves running the Electron tests: