diff --git a/src/server/dev/index.js b/src/server/dev/index.js index f6dd976e4cb3..a0882bc345e8 100644 --- a/src/server/dev/index.js +++ b/src/server/dev/index.js @@ -10,6 +10,7 @@ var join = path.join; var rel = join.bind(null, __dirname); var ROOT = rel('../../../'); var SRC = join(ROOT, 'src'); +var NODE_MODULES = join(ROOT, 'node_modules'); var APP = join(SRC, 'kibana'); var TEST = join(ROOT, 'test'); @@ -39,6 +40,8 @@ module.exports = function (app) { })); app.use('/test', express.static(TEST)); + app.use('/src', express.static(SRC)); + app.use('/node_modules', express.static(NODE_MODULES)); app.use('/specs', function (req, res) { var unit = join(ROOT, '/test/unit/'); glob(join(unit, 'specs/**/*.js'), function (er, files) { diff --git a/tasks/config/mocha.js b/tasks/config/mocha.js index e8a519756c55..566c512a0229 100644 --- a/tasks/config/mocha.js +++ b/tasks/config/mocha.js @@ -7,8 +7,8 @@ module.exports = { unit: { options: { urls: [ - 'http://localhost:8000/test/unit/' + 'http://localhost:5601/test/unit/' ] } } -}; \ No newline at end of file +};