Commit 8c46d980 authored by Kyle Keating's avatar Kyle Keating Committed by Kyle Keating

Fix deprecated warning from recent karam upgrade

Karam expects the config to be of type `Config`. This can be done by calling the karma.config.parseConfig method which creates a Config object that can be passed to karma.Server()
parent 216d81d0
......@@ -346,10 +346,10 @@ gulp.task(
function runKarma(done) {
const karma = require('karma');
new karma.Server(
{
configFile: path.resolve(__dirname, './src/karma.config.js'),
...karmaOptions,
},
karma.config.parseConfig(
path.resolve(__dirname, './src/karma.config.js'),
karmaOptions
),
done
).start();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment