#85: move all test files alongside with tested files

This commit is contained in:
SleepWalker 2017-05-25 22:52:00 +03:00
parent 078bc44490
commit 6ead1bd01f
36 changed files with 3 additions and 10 deletions

View File

@ -16,7 +16,7 @@ module.exports = function(config) {
// list of files / patterns to load in the browser // list of files / patterns to load in the browser
files: [ files: [
'dll/vendor.dll.js', 'dll/vendor.dll.js',
'tests/index.js' 'src/test.js'
], ],
// list of files to exclude // list of files to exclude
@ -26,7 +26,7 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser // preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: { preprocessors: {
'tests/index.js': ['webpack', 'sourcemap'] 'src/test.js': ['webpack', 'sourcemap']
}, },
webpack: require('./webpack.config.js'), webpack: require('./webpack.config.js'),

View File

@ -21,7 +21,7 @@ if (!window.localStorage) {
}; };
} }
// require all modules ending in "_test" from the // require all modules ending in ".test.js" from the
// current directory and all subdirectories // current directory and all subdirectories
const testsContext = require.context('.', true, /\.test\.jsx?$/); const testsContext = require.context('.', true, /\.test\.jsx?$/);
testsContext.keys().forEach(testsContext); testsContext.keys().forEach(testsContext);

View File

@ -1,7 +0,0 @@
{
"env": {
"browser": true,
"es6": true,
"mocha": true
}
}