Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function runKarmaTests(configObj, done, singleRun) {
var config = new Config();
config.set(configObj);
if (singleRun !== null) {
config.singleRun = singleRun;
}
new Server(config, function(exitCode) {
if (exitCode !== 0) {
throw new gutil.PluginError({
plugin: "karma",
message: "Karma tests failed"
});
}
done();
}).start();
function runKarmaTests(configObj, done, singleRun) {
const config = new Config();
config.set(configObj);
if (singleRun !== null) {
config.singleRun = singleRun;
}
new Server(config, exitCode => {
if (exitCode !== 0) {
throw new gutil.PluginError({ plugin: 'karma', message: 'Karma tests failed' });
}
done();
}).start();
}
function runKarmaTests(configObj, done, singleRun) {
var config = new Config();
config.set(configObj);
if (singleRun !== null) {
config.singleRun = singleRun;
}
new Server(config, function(exitCode) {
if (exitCode !== 0) {
throw new gutil.PluginError({
plugin: "karma",
message: "Karma tests failed"
});
}
done();
}).start();
var Config = require('karma/lib/config').Config;
var Server = require('karma').Server;
var ModernizrWebpackPlugin = require('./index');
var createConfig = require('./karma.conf');
var karmaConfig = createConfig(new Config());
var webpack = require('webpack');
var webpackConfig = require('./webpack.config');
var path = require('path');
var OUTPUT_JS = 'modernizr-bundle.js';
function _executeTestingServer(source) {
var config = Object.assign({}, karmaConfig);
config.files.push(source);
var server = new Server(config);
server.start();
}
webpackConfig.plugins = webpackConfig.plugins.filter(function (plugin) {