import type { Config , ConfigOptions } from 'karma' ; import 'karma-webpack' ; import * as jasmineConfig from './jasmine.json' ; import webpackConfig from './webpack.config' ; module . exports = ( config ) : void => { const options = { autoWatch : false , basePath : jasmineConfig . spec_dir , browserNoActivityTimeout : 90000 , browsers : [ 'ChromeNoSandbox' ] , client : { useIframe : false , } , colors : true , concurrency : Infinity , customLaunchers : { ChromeNoSandbox : { base : 'ChromeHeadless' , flags : [ '--no-sandbox' ] , } , } , files : [ '**/!(*.d).ts' , { included : false , pattern : '**/*.js' , served : true , watched : true } ] , frameworks : [ 'jasmine' ] , logLevel : config . LOG_INFO , port : 9876 , preprocessors : { '**/*.ts' : [ 'webpack' ] , } , reporters : [ 'progress' ] , singleRun : true , webpack : webpackConfig , webpackMiddleware : { stats : 'errors-only' , } , } ; config . set ( options ) ; } ;