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

Keep a loaded BrowserWindow in memory #66

Open mitchheddles opened 4 years ago

mitchheddles commented 4 years ago

It takes roughly 400-600ms for the BrowserWindow to load the url before running the test. With this change, we keep a loaded window in memory for the next test, saving us the setup time.

In our case we have ~250 test suites, this saves us 2 minutes in CI.

The preloaded BrowserWindow is destroyed on cleanup.

DJTB commented 4 years ago

This would be a huge help!