process.env.NODE_ENV = 'test'; var pathrequire('path'); var webpackrequire('webpack'); var testWebpackConfigrequire('./frontend_build/baseWebpackConfig'); var jspecEnvrequire('./spec/jspec_env'); testWebpackConfig.entry = undefined; testWebpackConfig.plugins.push(new webpack.DefinePlugin(jspecEnv)); _AN_Call_assign('assign', Object, testWebpackConfig.externals || (testWebpackConfig.externals = { } ), { 'react-dom/server': 'window', 'react/lib/ReactContext': 'true', 'react/lib/ExecutionEnvironment': 'true'} ); testWebpackConfig.resolve.alias["spec/jsx"] = path.resolve(__dirname, 'spec/javascripts/jsx'); testWebpackConfig.module.rules.unshift({ test: [/\/spec\/coffeescripts\//, /\/spec_canvas\/coffeescripts\//, /\/spec\/javascripts\/jsx\//, /\/ember\/.*\/tests\//] , loaders: ['imports-loader?test=>QUnit.test', 'imports-loader?asyncTest=>QUnit.asyncTest', 'imports-loader?start=>QUnit.start'] } ); if (process.env.COVERAGE) { testWebpackConfig.module.rules.unshift({ test: /(jsx.*(\.js$|\.jsx$)|\.coffee$|public\/javascripts\/.*\.js$)/, exclude: /(node_modules|spec|public\/javascripts\/(bower|client_apps|translations|vendor|custom_moment_locales))/, loader: 'istanbul-instrumenter-loader'} ); } module.exports = testWebpackConfig;