Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "npm test" filed #189

Open
grazumkov opened this issue Jun 24, 2016 · 2 comments
Open

Command "npm test" filed #189

grazumkov opened this issue Jun 24, 2016 · 2 comments

Comments

@grazumkov
Copy link

Error when running tests on the command line (npm test):

C:\Temp\js-assessment\node_modules\mocha\lib\utils.js:634
        throw new Error("cannot resolve path (or pattern) '" + path + "'");
        ^

Error: cannot resolve path (or pattern) ''tests/app''
    at Object.lookupFiles (C:\Temp\js-assessment\node_modules\mocha\lib\utils.js              :634:15)
    at C:\Temp\js-assessment\node_modules\mocha\bin\_mocha:327:30
    at Array.forEach (native)
    at Object.<anonymous> (C:\Temp\js-assessment\node_modules\mocha\bin\_mocha:3              26:6)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3
npm ERR! Test failed.  See above for more details.
@rmurphey
Copy link
Owner

This is likely due to the use of / as the separator for the path in the test command in package.json. I'm not sure what the options are for fixing this in package.json without breaking it for Unix/Mac users; in the meantime, changing occurrences of / to \ may get you up and running locally.

@grazumkov
Copy link
Author

grazumkov commented Jun 24, 2016

  1. What if remove single quotes?
  2. We can make the mocha launch script. See my commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants