aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-03 19:47:39 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:55:02 +0200
commitd2aa484b600dc0d122bb994b9bb29504ffe4cf12 (patch)
tree1d3e38fdb22f7afe02f1ebcf4b07734761970985 /packages/main/src/index.ts
parentrefactor: config file saving and debugging (diff)
downloadsophie-d2aa484b600dc0d122bb994b9bb29504ffe4cf12.tar.gz
sophie-d2aa484b600dc0d122bb994b9bb29504ffe4cf12.tar.zst
sophie-d2aa484b600dc0d122bb994b9bb29504ffe4cf12.zip
build: integration testing support
Run integration tests in an electron environment for the main process. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/src/index.ts')
-rw-r--r--packages/main/src/index.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts
index 78861c2..3494f25 100644
--- a/packages/main/src/index.ts
+++ b/packages/main/src/index.ts
@@ -23,14 +23,11 @@ import os from 'node:os';
23 23
24import { app } from 'electron'; 24import { app } from 'electron';
25 25
26import { 26import { enableStacktraceSourceMaps } from './infrastructure/electron/impl/devTools';
27 enableStacktraceSourceMaps,
28 ensureDevDataDir,
29} from './infrastructure/electron/impl/devTools';
30import electronShell from './infrastructure/electron/impl/electronShell'; 27import electronShell from './infrastructure/electron/impl/electronShell';
31import initReactions from './initReactions'; 28import initReactions from './initReactions';
32import MainStore from './stores/MainStore'; 29import MainStore from './stores/MainStore';
33import { getLogger } from './utils/log'; 30import getLogger from './utils/getLogger';
34 31
35const isDevelopment = import.meta.env.MODE === 'development'; 32const isDevelopment = import.meta.env.MODE === 'development';
36 33
@@ -40,7 +37,6 @@ const log = getLogger('index');
40app.enableSandbox(); 37app.enableSandbox();
41 38
42if (isDevelopment) { 39if (isDevelopment) {
43 ensureDevDataDir();
44 enableStacktraceSourceMaps(); 40 enableStacktraceSourceMaps();
45} 41}
46 42