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:
+3
-1
@@ -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']
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user