diff --git a/lib/init.js b/lib/init.js index a5325bb3d..d4cbee2f7 100755 --- a/lib/init.js +++ b/lib/init.js @@ -351,7 +351,7 @@ exports.init = function(config) { sm.process(questions, function(answers) { var cwd = process.cwd(); - var configFile = config.configFile; + var configFile = config.configFile || 'karma.conf.js'; var templateFile = isCoffeeFile(configFile) ? COFFEE_TPL_PATH : JS_TPL_PATH; var replacements = getReplacementsFromAnswers(answers, getBasePath(configFile, process.cwd())); var content = fs.readFileSync(templateFile).toString().replace(/%(.*)%/g, function(a, key) {