2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Moving test helpers and auto-loading them

This commit is contained in:
Matt Zabriskie
2016-03-07 13:21:27 -07:00
parent 0da38da921
commit dcbb352262
19 changed files with 141 additions and 124 deletions
+3 -1
View File
@@ -111,7 +111,8 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
'test/specs/**/*.spec.js'
'test/specs/__helpers.js',
'test/specs/**/*.spec.js',
],
@@ -124,6 +125,7 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/specs/__helpers.js': ['webpack', 'sourcemap'],
'test/specs/**/*.spec.js': ['webpack', 'sourcemap']
},