We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76336ca commit 824bb30Copy full SHA for 824bb30
1 file changed
karma.conf.js
@@ -2,7 +2,7 @@
2
'use strict';
3
4
module.exports = function (config) {
5
- config.set({
+ var configuration = {
6
7
// base path that will be used to resolve all patterns (eg. files, exclude)
8
basePath: '',
@@ -62,11 +62,22 @@
62
// start these browsers
63
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
64
browsers: ['Chrome'],
65
-
+ customLaunchers: {
66
+ Chrome_travis_ci: {
67
+ base: 'Chrome',
68
+ flags: ['--no-sandbox']
69
+ }
70
+ },
71
72
// Continuous Integration mode
73
// if true, Karma captures browsers, runs the tests and exits
74
singleRun: false
75
});
76
+
77
+ if (process.env.TRAVIS) {
78
+ configuration.browsers = ['Chrome_travis_ci'];
79
80
81
+ config.set(configuration);
82
};
83
}());
0 commit comments