dimanche 18 février 2018

How can I avoid "No test specified" errors in npm?

I'm using nom 5.6.0 on Mac High Sierra. I want to run tests that this guy set up in this Stratum client project -- https://github.com/arnabk/stratum-client . I have run "nom install" successfully. But when I try and run individual tests, I get the error "no test specified". What gives? I am in the root project directory and the tests are in my "test" folder. Her tis what happens

localhost:stratum-client-master davea$ npm install
up to date in 0.381s
localhost:stratum-client-master davea$ npm test test/callbacks.js

> stratum-client@1.0.1 test /Users/davea/Documents/workspace/stratum-client-master
> echo "Error: no test specified" && exit 1 "test/callbacks.js"

Error: no test specified
sh: line 0: exit: too many arguments
npm ERR! Test failed.  See above for more details.

Aucun commentaire:

Enregistrer un commentaire