Skip to content

Commit 3b2bffa

Browse files
itsthatianguydignifiedquire
authored andcommitted
fix(reporter): replace colons in the output path
change browser name used to generate output path, remove instances of `:` to make it compatible with windows BREAKING CHANGE: the output folder names change, they no longer contain `:`
1 parent 1a876d5 commit 3b2bffa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/reporter.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ var CoverageReporter = function (rootConfig, helper, logger, emitter) {
266266

267267
var mainDir = reporterConfig.dir || config.dir
268268
var subDir = reporterConfig.subdir || config.subdir
269-
var simpleOutputDir = generateOutputDir(browser.name, mainDir, subDir)
269+
var browserName = browser.name.replace(':', '')
270+
var simpleOutputDir = generateOutputDir(browserName, mainDir, subDir)
270271
var resolvedOutputDir = path.resolve(basePath, simpleOutputDir)
271272

272273
var outputDir = helper.normalizeWinPath(resolvedOutputDir)

0 commit comments

Comments
 (0)