function karmaConfig() { return laxarInfrastructure.karma( [ `lib/spec/${pkg.name}.spec.js` ], { context: __dirname, module: { rules: require( './webpack.config' )[ 0 ].module.rules } } ); }
function karmaConfig() { const webpackConfig = require( './webpack.config' )[ 0 ]; return laxarInfrastructure.karma( [ `spec/${pkg.name}.spec.js` ], { context: __dirname, externals: webpackConfig.externals, module: { rules: webpackConfig.module.rules } } ); }