diff options
Diffstat (limited to 'config/electronJestGlobalTeardown.cjs')
-rw-r--r-- | config/electronJestGlobalTeardown.cjs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/electronJestGlobalTeardown.cjs b/config/electronJestGlobalTeardown.cjs new file mode 100644 index 0000000..f790a4f --- /dev/null +++ b/config/electronJestGlobalTeardown.cjs | |||
@@ -0,0 +1,8 @@ | |||
1 | const { app } = require('electron'); | ||
2 | |||
3 | /** @type {(globalConfig: import('@jest/types').Config.InitialOptions) => void} */ | ||
4 | module.exports = (globalConfig) => { | ||
5 | if (!globalConfig.watch && !globalConfig.watchAll) { | ||
6 | app.quit(); | ||
7 | } | ||
8 | }; | ||