From b417516c7ff5a28a9b23c50a7cd5bba656be0180 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 29 Mar 2018 17:11:17 +0100 Subject: [PATCH] Add CSS to karma This is useful for rich text tests which rely on DOM structure/CSS layout of rich text --- services/web/karma.conf.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/web/karma.conf.js b/services/web/karma.conf.js index d4eab91999..57b84394c1 100644 --- a/services/web/karma.conf.js +++ b/services/web/karma.conf.js @@ -26,7 +26,10 @@ module.exports = function (config) { { pattern: 'test/unit_frontend/js/**/*.js', included: false }, // Include ES test files 'test/unit_frontend/es/**/*.js', - 'modules/**/test/unit_frontend/es/**/*.js' + 'modules/**/test/unit_frontend/es/**/*.js', + // Include CSS (there is some in js/libs dir) + 'public/stylesheets/**/*.css', + 'public/js/libs/**/*.css' ], middleware: ['fake-img'], preprocessors: { @@ -74,4 +77,4 @@ function fakeImgMiddlewareFactory () { } next() } -} \ No newline at end of file +}