diff --git a/config/constants.js b/config/constants.js index 33687b09..a872e573 100644 --- a/config/constants.js +++ b/config/constants.js @@ -6,5 +6,5 @@ module.exports = { DIST_DIRECTORY: path.join(ROOT, 'dist'), SRC_DIRECTORY: path.join(ROOT, 'src'), ROOT_DIRECTORY: ROOT, - TEST_ENTRY: path.join(ROOT, 'src/tests.webpack.js') + TEST_ENTRY: path.join(ROOT, 'tests.webpack.js') } diff --git a/src/tests.webpack.js b/tests.webpack.js similarity index 80% rename from src/tests.webpack.js rename to tests.webpack.js index ab3a4de7..275b5876 100644 --- a/src/tests.webpack.js +++ b/tests.webpack.js @@ -4,5 +4,5 @@ * * See: https://github.com/webpack/docs/wiki/context */ -var context = require.context('.', true, /-test\.js$/) +var context = require.context('./src', true, /-test\.js$/) context.keys().forEach(context)