You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe its impossible cause of the structure off Electron,
But when I run tests, I want to use a 'temp' userData folder, instead of the 'official' one, so that data from tests does not mix with installed application data.
Is this possible?
Right now its only possible to call app.electron.remote.app.setPath('userData', path); after app.start, cause otherwise app.electron is not defined, and thus to late.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @DutchKevv, you're correct that app.electron isn't available until after app.start is called. However, you can pass in environment variables as you bootstrap the app with Spectron, e.g.:
Maybe its impossible cause of the structure off Electron,
But when I run tests, I want to use a 'temp' userData folder, instead of the 'official' one, so that data from tests does not mix with installed application data.
Is this possible?
Right now its only possible to call
app.electron.remote.app.setPath('userData', path);
after app.start, cause otherwise app.electron is not defined, and thus to late.Thanks!
The text was updated successfully, but these errors were encountered: