Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getKarmaConfig(config) {
var logger = require("karma/lib/logger");
var cfg = require('karma/lib/config');
var karmaConfigFile = path.resolve(config.karmaConfigFile);
// Config
logger.setup('INFO', false);
var log = Util.createLogger(logger);
var karmaConfig = {
singleRun: true,
browsers: [],
reporters: [],
colors: false,
logLevel: 'INFO'
};
if (_.isObject(config.config)) {
karmaConfig = extend(karmaConfig, config.config);
}
return cfg.parseConfig(karmaConfigFile, karmaConfig);
}
function setupLogger() {
require("karma/lib/logger").setup('INFO', false);
}
exports.setupLogger = setupLogger;
export function getKarmaConfig(config: Config, extensions?) {
var karmaConfigFile = path.resolve(config.karmaConfigFile);
var extend = require('extend');
var logger = require("karma/lib/logger");
var cfg = require('karma/lib/config');
logger.setup('INFO', false);
var karmaConfig: any = {
configFile: karmaConfigFile,
singleRun: true,
browsers: [],
reporters: [],
colors: false,
logLevel: 'INFO'
};
if (_.isObject(config.config)) {
karmaConfig = extend(karmaConfig, config.config);
}
Globals.origConfig = cfg.parseConfig(karmaConfigFile, karmaConfig);
karmaConfig = extend({}, Globals.origConfig, extensions);
function getKarmaConfig(config, extensions) {
var karmaConfigFile = path.resolve(config.karmaConfigFile);
var extend = require('extend');
var logger = require("karma/lib/logger");
var cfg = require('karma/lib/config');
logger.setup('INFO', false);
var karmaConfig = {
configFile: karmaConfigFile,
singleRun: true,
browsers: [],
reporters: [],
colors: false,
logLevel: 'INFO'
};
if (_.isObject(config.config)) {
karmaConfig = extend(karmaConfig, config.config);
}
Globals.origConfig = cfg.parseConfig(karmaConfigFile, karmaConfig);
karmaConfig = extend({}, Globals.origConfig, extensions);
export function setupLogger() {
require("karma/lib/logger").setup('INFO', false);
}