Merge pull request #28555 from pine/fix/karma

Add `customLaunchers` field for `karma` pkg
This commit is contained in:
Armando Aguirre
2018-08-31 13:01:29 -07:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -248,6 +248,7 @@ declare namespace karma {
* you can specify how many browsers should be running at once at any given point in time.
*/
concurrency?: number;
customLaunchers?: { [key: string]: CustomLauncher };
/**
* @default []
* @description List of files/patterns to exclude from loaded files.
@@ -470,6 +471,13 @@ declare namespace karma {
*/
nocache?: boolean;
}
interface CustomLauncher {
base: string;
browserName?: string;
flags?: string[];
platform?: string;
}
}
declare var karma: karma.Karma;
+6
View File
@@ -106,6 +106,12 @@ module.exports = function(config: karma.Config) {
'Chrome',
'Firefox'
],
customLaunchers: {
ChromiumHeadless_without_security: {
base: 'ChromiumHeadless',
flags: ['--no-sandbox', '--disable-setuid-sandbox'],
},
},
singleRun: true
});