Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

nodeunit /an/absolute.path/to/my-test.js breaks #193

Open
wants to merge 1 commit into from

1 participant

@kdvolder

It improperly tries to append the process.pwd() to the front of an already absolute path which results in a path that doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/reporters/default.js
View
2  lib/reporters/default.js
@@ -122,7 +122,7 @@ exports.run = function (files, options, callback) {
};
if (files && files.length) {
var paths = files.map(function (p) {
- return path.join(process.cwd(), p);
+ return path.resolve(process.cwd(), p);
});
nodeunit.runFiles(paths, opts);
} else {
Something went wrong with that request. Please try again.