Skip to content
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

Merged
merged 15 commits into from
Apr 19, 2023
Merged

Improving Electron tests #5738

merged 15 commits into from
Apr 19, 2023

Conversation

kraenhansen
Copy link
Member

What, How & Why?

Improves running the Electron tests:

  • Producing a cjs bundle of the app importer.
  • Upgrading Electron to v24.
  • Loading realm in the renderer process still fails.

@kraenhansen kraenhansen requested a review from elle-j April 19, 2023 07:41
@kraenhansen kraenhansen marked this pull request as ready for review April 19, 2023 07:41
Copy link
Contributor

@elle-j elle-j left a 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,
Copy link
Contributor

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)?

Comment on lines +16 to +17
"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",
Copy link
Contributor

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",
Copy link
Contributor

@elle-j elle-j Apr 19, 2023

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?

@kraenhansen kraenhansen merged commit 60c4a98 into main Apr 19, 2023
@kraenhansen kraenhansen deleted the kh/electron-tests branch April 19, 2023 11:06
papafe added a commit that referenced this pull request Apr 21, 2023
* main:
  Added note in docs for change listeners (#5749)
  Update CHANGELOG entry (#5751)
  Use `SchemaParseError` for invalid schemas (#5722)
  Improving Electron tests (#5738)
  Support SSL Sync Configuration (#5507)

# Conflicts:
#	CHANGELOG.md
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants