From 273e75200abfffd96d578c0ae8908a167dface80 Mon Sep 17 00:00:00 2001 From: Dorian Boulc'h Date: Sat, 2 May 2020 00:00:14 +0200 Subject: [PATCH] fix/ Karma configuration to debug easily Keep karma executing in iframe but enable node integration in subframes Specifying the remote debugging port by default to allow intellij to detect the debuging port --- src/karma.conf.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/karma.conf.js b/src/karma.conf.js index bd57a10..95aa757 100644 --- a/src/karma.conf.js +++ b/src/karma.conf.js @@ -30,16 +30,17 @@ module.exports = function (config) { customLaunchers: { AngularElectron: { base: 'Electron', + flags: [ + '--remote-debugging-port=9222' + ], browserWindowOptions: { webPreferences: { nodeIntegration: true, + nodeIntegrationInSubFrames: true, allowRunningInsecureContent: true } } } - }, - client: { - useIframe: false } }); };