Skip to content

Commit

Permalink
Do not attempt to instrument files which do not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed May 9, 2014
1 parent a183efc commit 472d6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Expand Up @@ -198,7 +198,7 @@ ClientBatch.prototype.provideTests = function () {
}

// Instrument JS for code coverage
if (self.instrumenter && self.coverageMatcher.match(file)) {
if (self.instrumenter && self.coverageMatcher.match(file) && fs.existsSync(file)) {
completer = function (err, data) {
try {
data = data.toString("utf8");
Expand Down

0 comments on commit 472d6f1

Please sign in to comment.