Set the appData path manually so running in test environment uses same appdata

This commit is contained in:
Core 2022-02-01 20:46:32 +00:00
parent 2bbfc0c652
commit fbe0df1cbf
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -1,8 +1,12 @@
require('v8-compile-cache');
import {app, components, ipcMain} from 'electron';
import {join} from 'path';
app.setPath('userData', join(app.getPath('appData'), 'Cider'));
// Analytics for debugging fun yeah.
import {init as Sentry} from '@sentry/electron';
import {app, components, ipcMain} from 'electron';
import {Store} from "./base/store";
import {AppEvents} from "./base/app";
import {Plugins} from "./base/plugins";