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

Does not work on Electron 12 #78

Closed marcoancona closed 3 years ago

marcoancona commented 3 years ago

The runner does not seem to work on Electron 12. By using

JEST_ELECTRON_RUNNER_RENDERER_THREAD_DEBUG_PORT=9222 jest

and inspecting the error, the problems seem to be in the new default settings and security policy of Electron 12 (nodeIntegration also requires contextIsolation=false but contextIsolation is true by default in Electron 12).

image