diff --git a/index.js b/index.js index 812fd4593..7afbded8f 100755 --- a/index.js +++ b/index.js @@ -444,7 +444,7 @@ NYC.prototype.report = function () { var tree var map = this._getCoverageMapFromAllCoverageFiles() var context = libReport.createContext({ - dir: this._reportDir, + dir: this.reportDirectory(), watermarks: this.config.watermarks }) @@ -537,6 +537,10 @@ NYC.prototype.tempDirectory = function () { return path.resolve(this.cwd, this._tempDirectory) } +NYC.prototype.reportDirectory = function () { + return path.resolve(this.cwd, this._reportDir) +} + NYC.prototype.processInfoDirectory = function () { return path.resolve(this.tempDirectory(), 'processinfo') }