Skip to content

Commit

Permalink
fix/ Karma configuration to debug easily
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dorianboulch authored May 1, 2020
1 parent 63eed52 commit 273e752
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
});
};

0 comments on commit 273e752

Please sign in to comment.