From 468fb7b3547e996898ea96e10bc7a130c20b5fd6 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 19 Mar 2018 10:51:40 +0000 Subject: [PATCH] Fix tests when run via http://localhost:4200/tests no issue - browserify test dependencies need to be included with dev builds too --- ghost/admin/config/environment.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ghost/admin/config/environment.js b/ghost/admin/config/environment.js index 222ecbcc8a..e737760110 100644 --- a/ghost/admin/config/environment.js +++ b/ghost/admin/config/environment.js @@ -44,6 +44,13 @@ module.exports = function (environment) { ENV.APP.LOG_TRANSITIONS = true; ENV.APP.LOG_TRANSITIONS_INTERNAL = true; ENV.APP.LOG_VIEW_LOOKUPS = true; + + // This is needed so that browserify dependencies in tests work correctly + // See https://github.com/ef4/ember-browserify/issues/14 + ENV.browserify = { + tests: true + }; + // Enable mirage here in order to mock API endpoints during development ENV['ember-cli-mirage'] = { enabled: false