Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Check on 'node_modules' prevents jasmine-node's own tests being run #8

Closed
liammagee opened this Issue Feb 6, 2012 · 1 comment

Comments

Projects
None yet
3 participants

When installing jasmine-node on Windows, it is installed into 'node_modules' in my project directory. If I try to run the sample specs, they are not found. The problem looks to be a check on line 24 of spec-collection.js:

            if (!/.*node_modules.*/.test(file) && matcher.test(path.basename(file))) {

If the first part of the check is removed I can run (on Windows) something like:

node node_modules\jasmine-node\lib\jasmine-node\cli.js node_modules\jasmine-node\spec

(Note due to the full path check it makes no difference if I cd into the jasmine-node directory).

mtscout6 commented Feb 6, 2012

This is the same issue as #5

@substack substack closed this Sep 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment