const { makeConfig } = require ( '../base.webpack.js' ) ; process . env . CHROMIUM_BIN = require ( 'puppeteer' ) . executablePath ( ) ; const baseConfig = makeConfig ( { defaultMode : 'development' } ) ; const test_patterns = [ '**/*.spec.ts' , './data_formatting.spec.ts' ] ; let preprocessors = { } ; for ( const pattern of test_patterns ) { preprocessors [ pattern ] = [ 'webpack' ] ; } module . exports = function ( config ) { config . set ( { frameworks : [ 'jasmine' ] , files : test_patterns , preprocessors , reporters : [ 'progress' ] , colors : true , logLevel : config . LOG_INFO , browsers : [ 'ChromiumHeadless' ] , singleRun : true , concurrency : Infinity , webpack : { module : baseConfig . module , resolve : baseConfig . resolve , plugins : baseConfig . plugins , mode : baseConfig . mode , } } ) ; } ;