facebook-atom / jest-electron-runner

custom test runner for Jest that allows tests to be run in Electron environment
MIT License
189 stars 33 forks source link

Feature Request: allow browser window options to be specified #73

Open kumavis opened 4 years ago

kumavis commented 4 years ago

for some tests it may be necessary to specify some options to BrowserWindow ( eg nodeIntegrationInWorker) you should be able to specify these options in the jest config

relevant code https://github.com/facebook-atom/jest-electron-runner/blob/059b6d874630c3cd56589d9903232724789fb03c/packages/electron/src/rpc/JestWorkerRPC.js#L47-L50

HyperSprite commented 3 years ago

This package is a life saver for testing Electron! It's been rock solid, huge thanks to everyone.

This issue has recently come to a head for us as well.

With Big Sir, Electron Autoupdate fails to restart the app and the fix is not being backported from Electron 11

Meanwhile, the two settings that enable people to keep using depreciated features that some libraries still depend on are the webPreferences: enableRemoteModule (defaults to false is needed to run electron.remote) and contextIsolation (defaults to true is needed to run some packages like SQLite until they are upgraded) in Electron 11.

eugeniol commented 3 years ago

+1 Any update on this?