import type { Config } from 'karma' ; module . exports = ( config ) : void => { config . set ( { autoWatch : false , basePath : 'src/main' , browserNoActivityTimeout : 90000 , browsers : [ 'ChromeNoSandbox' ] , client : { useIframe : false , } , colors : true , concurrency : Infinity , customLaunchers : { ChromeNoSandbox : { base : 'ChromeHeadless' , flags : [ '--allow-file-access-from-files' , '--no-sandbox' , '--unlimited-quota-for-files' ] , } , } , files : [ '**/!(*.d).ts' ] , frameworks : [ 'jasmine' , 'karma-typescript' ] , logLevel : config . LOG_INFO , port : 9876 , preprocessors : { '**/*.ts' : [ 'karma-typescript' ] , } , reporters : [ 'progress' , 'karma-typescript' ] , singleRun : true , } ) ; } ;