include coverage postLoader in test bundle

This commit is contained in:
Joe Fleming 2015-08-24 16:24:07 -07:00
parent c78ce05a8e
commit 9e1488ebbb

View file

@ -23,6 +23,12 @@ module.exports = (kibana) => {
for (let f of testFiles) modules.push(f);
env.addPostLoader({
test: /\.jsx?$/,
exclude: /[\/\\](__tests__|node_modules|bower_components|webpackShims)[\/\\]/,
loader: 'istanbul-instrumenter'
});
return new UiBundle({
id: 'tests',
modules: modules,