mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-09 17:42:03 +05:30
#85: move all test files alongside with tested files
This commit is contained in:
parent
078bc44490
commit
6ead1bd01f
@ -16,7 +16,7 @@ module.exports = function(config) {
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'dll/vendor.dll.js',
|
||||
'tests/index.js'
|
||||
'src/test.js'
|
||||
],
|
||||
|
||||
// list of files to exclude
|
||||
@ -26,7 +26,7 @@ module.exports = function(config) {
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
preprocessors: {
|
||||
'tests/index.js': ['webpack', 'sourcemap']
|
||||
'src/test.js': ['webpack', 'sourcemap']
|
||||
},
|
||||
|
||||
webpack: require('./webpack.config.js'),
|
||||
|
@ -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
|
||||
const testsContext = require.context('.', true, /\.test\.jsx?$/);
|
||||
testsContext.keys().forEach(testsContext);
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"mocha": true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user