import type { Config } from 'karma' ; import * as path from 'path' ; const distDir = 'dist/' ; const preprocessors = { '**/*.js' : [ 'sourcemap' ] , } ; module . exports = ( config ) : void => { config . set ( { autoWatch : false , basePath : '' , browserNoActivityTimeout : 10000 , browsers : [ 'ChromeNoSandbox' ] , client : { useIframe : false , } , colors : true , concurrency : Infinity , customLaunchers : { ChromeNoSandbox : { base : 'ChromeHeadless' , flags : [ '--no-sandbox' ] , } , } , files : [ path . join ( distDir , 'priority-queue.test.bundle.js' ) ] , frameworks : [ 'jasmine' ] , logLevel : config . LOG_INFO , port : 9876 , preprocessors , reporters : [ 'jasmine-diff' , 'spec' ] , singleRun : true , } ) ; } ;