aboutsummaryrefslogtreecommitdiff
path: root/test/unit/karma.conf.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-05-20 18:09:14 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-05-20 18:09:14 +0000
commitb436e0dd12167719c0f918a27df3ab4f43113d4c (patch)
tree85639dcf134f8ec20d408f203532cc11eb6a3561 /test/unit/karma.conf.js
parent5b8f5eddbf2d39ed8242255fd6188f1275561195 (diff)
parent15b3651a3070cffeadeca83255e2052f519d5db8 (diff)
Merge branch 'webpack-4-dart-sass' into 'develop'
Massive update for dependencies See merge request pleroma/pleroma-fe!734
Diffstat (limited to 'test/unit/karma.conf.js')
-rw-r--r--test/unit/karma.conf.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/unit/karma.conf.js b/test/unit/karma.conf.js
index d19a2229..8465523a 100644
--- a/test/unit/karma.conf.js
+++ b/test/unit/karma.conf.js
@@ -13,7 +13,7 @@ var projectRoot = path.resolve(__dirname, '../../')
var webpackConfig = merge(baseConfig, {
// use inline sourcemap for karma-sourcemap-loader
module: {
- loaders: utils.styleLoaders()
+ rules: utils.styleLoaders()
},
devtool: '#inline-source-map',
// vue: {
@@ -53,11 +53,18 @@ module.exports = function (config) {
// 1. install corresponding karma launcher
// http://karma-runner.github.io/0.13/config/browsers.html
// 2. add it to the `browsers` array below.
- browsers: ['PhantomJS'],
+ browsers: ['FirefoxHeadless'],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['mocha'],
+ customLaunchers: {
+ 'FirefoxHeadless': {
+ base: 'Firefox',
+ flags: [
+ '-headless',
+ ]
+ }
+ },
files: [
- '../../node_modules/@babel/polyfill/dist/polyfill.js',
'./index.js'
],
preprocessors: {