summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index 478ef082547..0a3530b65ac 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -8,20 +8,13 @@ module.exports = function(config) {
basePath: ROOT_PATH,
frameworks: ['jquery-2.1.0', 'jasmine'],
files: [
- 'spec/javascripts/*_spec.js',
- 'spec/javascripts/*_spec.js.es6',
- { pattern: 'spec/javascripts/fixtures/**/*.html', included: false, served: true },
- { pattern: 'spec/javascripts/fixtures/**/*.json', included: false, served: true },
+ 'spec/javascripts/**/*_spec.js?(.es6)',
+ { pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw)', included: false },
],
preprocessors: {
- 'spec/javascripts/*_spec.js': ['webpack'],
- 'spec/javascripts/*_spec.js.es6': ['webpack'],
- 'app/assets/javascripts/**/*.js': ['webpack'],
- 'app/assets/javascripts/**/*.js.es6': ['webpack'],
+ 'spec/javascripts/**/*_spec.js?(.es6)': ['webpack'],
},
-
webpack: webpackConfig,
-
webpackMiddleware: { stats: 'errors-only' },
});
};