mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #28555 from pine/fix/karma
Add `customLaunchers` field for `karma` pkg
This commit is contained in:
Vendored
+8
@@ -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;
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user