Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add Karma "ChromeDebug" custom launcher for VSCode [ci skip]

Christopher Hiller3d0938129053
diff --git a/karma.conf.js b/karma.conf.js
index 9220baec..d213a8ba 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -60,6 +60,12 @@ module.exports = config => {
},
mochaReporter: {
showDiff: true
+ },
+ customLaunchers: {
+ ChromeDebug: {
+ base: 'Chrome',
+ flags: ['--remote-debugging-port=9333']
+ }
}
};
@@ -162,7 +168,7 @@ function addSauceTests (cfg) {
platform: platform
};
return acc;
- }, {});
+ }, cfg.customLaunchers);
// See https://github.com/karma-runner/karma-sauce-launcher
// See https://github.com/bermi/sauce-connect-launcher#advanced-usage