Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use fs-extra instead of node-fs #50

Merged
merged 1 commit into from Feb 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

var jsonFile = require('jsonfile');
var _ = require('lodash');
var fs = require('fs');
var fs = require('fs-extra');
var path = require('path');
var jsonDir = require('./jsonDir');
var nodeFs = require('node-fs');
var open = require('open');
var searchFileUp = require('./searchFileUp');

Expand Down Expand Up @@ -54,7 +53,7 @@ var generateReport = function(options) {

var createReportDirectoryIfNotExists = function() {
if (!fs.existsSync(options.output)) {
nodeFs.mkdirSync(path.dirname(options.output), parseInt('0777', 8), true);
fs.mkdirsSync(path.dirname(options.output));
}
};

Expand Down
2 changes: 1 addition & 1 deletion lib/searchFileUp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var fs = require('fs');
var fs = require('fs-extra');
var path = require('path');

function searchFileUp(fileName) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
"dependencies": {
"chai": "^3.5.0",
"find": "^0.2.7",
"fs-extra": "^2.0.0",
"js-base64": "^2.1.9",
"jsonfile": "^2.3.1",
"lodash": "^4.17.2",
"node-fs": "^0.1.7",
"open": "0.0.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/assert/assertHtmlReports.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
var chai = require('chai');
var fs = require('fs');
var fs = require('fs-extra');
should = chai.should();
var path = require('path');

Expand Down
2 changes: 1 addition & 1 deletion test/features/step_definitions/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var reporter = require('../../../index');
var assertHtmlReports = require('../../assert/assertHtmlReports');
var path = require('path');
var fs = require('fs');
var fs = require('fs-extra');
var find = require('find');

var hooks = function() {
Expand Down