Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Reporter: mkdir is now synchronous.
Browse files Browse the repository at this point in the history
Having it asynchronous causes an issue when opening the `index.html`
stream just after.
  • Loading branch information
Hywan committed Mar 7, 2016
1 parent 8b972df commit f66b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reporter/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function emptyFunction() {}

function config(options) {
outputDirectory = options.outputDirectory;
mkdirp(outputDirectory);
mkdirp.sync(outputDirectory);
indexStream = fs.createWriteStream(
outputDirectory + '/index.html',
{
Expand Down

0 comments on commit f66b77c

Please sign in to comment.