Skip to content

Commit 42b7410

Browse files
authored
Merge pull request element-hq#1652 from vector-im/rav/fix_karma_olm_warning
Karma: fix warning by ignoring olm
2 parents 4cfcdfa + 795986f commit 42b7410

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎karma.conf.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function (config) {
3636
proxies: {
3737
"/img/": "/base/vector/img/",
3838
},
39-
39+
4040
// preprocess matching files before serving them to the browser
4141
// available preprocessors:
4242
// https://npmjs.org/browse/keyword/karma-preprocessor
@@ -123,14 +123,19 @@ module.exports = function (config) {
123123

124124
// same goes for js-sdk
125125
"matrix-js-sdk": path.resolve('./node_modules/matrix-js-sdk'),
126-
126+
127127
sinon: 'sinon/pkg/sinon.js',
128128
},
129129
root: [
130130
path.resolve('./src'),
131131
path.resolve('./test'),
132132
],
133133
},
134+
plugins: [
135+
// olm may not be installed, so avoid webpack warnings by
136+
// ignoring it.
137+
new webpack.IgnorePlugin(/^olm$/),
138+
],
134139
devtool: 'inline-source-map',
135140
},
136141
});

0 commit comments

Comments
 (0)