diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-05-03 19:47:39 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-16 00:55:02 +0200 |
commit | d2aa484b600dc0d122bb994b9bb29504ffe4cf12 (patch) | |
tree | 1d3e38fdb22f7afe02f1ebcf4b07734761970985 /packages/main/src/index.ts | |
parent | refactor: config file saving and debugging (diff) | |
download | sophie-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.ts | 8 |
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 | ||
24 | import { app } from 'electron'; | 24 | import { app } from 'electron'; |
25 | 25 | ||
26 | import { | 26 | import { enableStacktraceSourceMaps } from './infrastructure/electron/impl/devTools'; |
27 | enableStacktraceSourceMaps, | ||
28 | ensureDevDataDir, | ||
29 | } from './infrastructure/electron/impl/devTools'; | ||
30 | import electronShell from './infrastructure/electron/impl/electronShell'; | 27 | import electronShell from './infrastructure/electron/impl/electronShell'; |
31 | import initReactions from './initReactions'; | 28 | import initReactions from './initReactions'; |
32 | import MainStore from './stores/MainStore'; | 29 | import MainStore from './stores/MainStore'; |
33 | import { getLogger } from './utils/log'; | 30 | import getLogger from './utils/getLogger'; |
34 | 31 | ||
35 | const isDevelopment = import.meta.env.MODE === 'development'; | 32 | const isDevelopment = import.meta.env.MODE === 'development'; |
36 | 33 | ||
@@ -40,7 +37,6 @@ const log = getLogger('index'); | |||
40 | app.enableSandbox(); | 37 | app.enableSandbox(); |
41 | 38 | ||
42 | if (isDevelopment) { | 39 | if (isDevelopment) { |
43 | ensureDevDataDir(); | ||
44 | enableStacktraceSourceMaps(); | 40 | enableStacktraceSourceMaps(); |
45 | } | 41 | } |
46 | 42 | ||