Skip to content

Commit

Permalink
fix: when using browserify dont create source code caching
Browse files Browse the repository at this point in the history
  • Loading branch information
piecyk committed Jan 3, 2015
1 parent 0c99f75 commit 09d64f7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 2 space indentation
[**.*]
indent_style = space
indent_size = 2
3 changes: 2 additions & 1 deletion lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ var CoverageReporter = function(rootConfig, helper, logger) {

helper.mkdirIfNotExists(outputDir, function() {
log.debug('Writing coverage to %s', outputDir);
var _ = helper._;
var options = helper.merge({}, reporterConfig, {
dir : outputDir,
sourceStore : new SourceCacheStore({
sourceStore : _.isEmpty(sourceCache) ? null : new SourceCacheStore({
sourceCache: sourceCache
})
});
Expand Down
1 change: 1 addition & 0 deletions test/reporter.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe 'reporter', ->
mockReportCreate = sinon.stub().returns writeReport: mockWriteReport
mockMkdir = sinon.spy()
mockHelper =
_: helper._
isDefined: (v) -> helper.isDefined v
merge: (v...) -> helper.merge v...
mkdirIfNotExists: mockMkdir
Expand Down

0 comments on commit 09d64f7

Please sign in to comment.