11/*
2- SPDX-Copyright: Copyright (c) Capital One Services,LLC
2+ SPDX-Copyright: Copyright (c) Capital One Services,LLC
33SPDX-License-Identifier: Apache-2.0
44
55Copyright 2018 Capital One Services, LLC
@@ -20,30 +20,30 @@ See the License for the specific language governing permissions and limitations
2020module . exports = function ( config ) {
2121 config . set ( {
2222 basePath : '' ,
23- frameworks : [ 'jasmine' , '@angular/cli ' ] ,
23+ frameworks : [ 'jasmine' , '@angular-devkit/build-angular ' ] ,
2424 plugins : [
2525 require ( 'karma-jasmine' ) ,
2626 require ( 'karma-chrome-launcher' ) ,
2727 require ( 'karma-jasmine-html-reporter' ) ,
28- require ( 'karma-coverage-istanbul-reporter ' ) ,
29- require ( '@angular/cli /plugins/karma' )
28+ require ( 'karma-coverage' ) ,
29+ require ( '@angular-devkit/build-angular /plugins/karma' )
3030 ] ,
3131 client : {
3232 clearContext : false // leave Jasmine Spec Runner output visible in browser
3333 } ,
34- coverageIstanbulReporter : {
35- reports : [ 'html' , 'lcovonly' ] ,
36- fixWebpackSourcePaths : true
37- } ,
38- angularCli : {
39- environment : 'dev'
40- } ,
4134 reporters : [ 'progress' , 'kjhtml' ] ,
4235 port : 9876 ,
4336 colors : true ,
4437 logLevel : config . LOG_INFO ,
4538 autoWatch : true ,
4639 browsers : [ 'Chrome' ] ,
40+ // ChromeHeadlessNoSandbox is used in CI environments where --no-sandbox is required
41+ customLaunchers : {
42+ ChromeHeadlessNoSandbox : {
43+ base : 'ChromeHeadless' ,
44+ flags : [ '--no-sandbox' , '--disable-gpu' , '--disable-dev-shm-usage' ]
45+ }
46+ } ,
4747 singleRun : false
4848 } ) ;
4949} ;
0 commit comments