Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fails to find .js files when given a directory on Windows #57

JoeDoyle23 opened this Issue · 1 comment

2 participants


When trying to run tap (current version on NPM) on Windows using, I just get the following result:

> tap ./tests
total ................................................... 0/0


If I specify a specific .js file in the tests folder, it runs just fine.

I dug into this and found that on line 162 of tap-runner.js is the following check:
} else if ((st.mode & 0001) == 0) {
return cb()

I debugged this and when provided just the directory, the st.mode was 0x41B6. In the Node source it looks like this would be a check against UV_FS_SYMLINK_DIR? But since this is a real directory and not a symlink, this is true, and the directory is not processed further. Making this check false, allows the directory to drop down to line 167 where it runs as expected.

I'd submit a pull request, but I'm new to the internals of Node and I have no idea what exactly this is a check for.

@alidd alidd referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
rmg commented

It looks like this was fixed upstream about 2 years ago.

@rmg rmg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.