File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 2
2
// https://karma-runner.github.io/1.0/config/configuration-file.html
3
3
4
4
module . exports = function ( config ) {
5
- config . set ( {
5
+ const configuration = {
6
6
basePath : '' ,
7
7
frameworks : [ 'jasmine' , '@angular/cli' ] ,
8
8
plugins : [
@@ -12,11 +12,11 @@ module.exports = function (config) {
12
12
require ( 'karma-coverage-istanbul-reporter' ) ,
13
13
require ( '@angular/cli/plugins/karma' )
14
14
] ,
15
- client : {
15
+ client :{
16
16
clearContext : false // leave Jasmine Spec Runner output visible in browser
17
17
} ,
18
18
coverageIstanbulReporter : {
19
- reports : [ 'html' , 'lcovonly' ] ,
19
+ reports : [ 'html' , 'lcovonly' ] ,
20
20
fixWebpackSourcePaths : true
21
21
} ,
22
22
angularCli : {
@@ -28,6 +28,18 @@ module.exports = function (config) {
28
28
logLevel : config . LOG_INFO ,
29
29
autoWatch : true ,
30
30
browsers : [ 'Chrome' ] ,
31
- singleRun : false ,
32
- } ) ;
31
+ customLaunchers : {
32
+ Chrome_travis_ci : {
33
+ base : 'Chrome' ,
34
+ flags : [ '--no-sandbox' ]
35
+ }
36
+ } ,
37
+ singleRun : false
38
+ } ;
39
+
40
+ if ( process . env . TRAVIS ) {
41
+ configuration . browsers = [ 'Chrome_travis_ci' ] ;
42
+ }
43
+
44
+ config . set ( configuration ) ;
33
45
} ;
You can’t perform that action at this time.
0 commit comments