When I was trying out Jasmine, I could simply add the following to my package.json
file:
"scripts": {
"test": "jasmine"
},
Then when I ran npm test
from a Windows command prompt, npm would run my Jasmine tests.
However, with Cucumber-JS, I tried "test": "cucumber"
but that simply opened node_modules\.bin\cucumber.js
in my editor. I seem to have to use the following to actually run the tests:
"scripts": {
"test": "cucumber.js.cmd"
},
That seems very platform-specific, and I'd rather not make this difficult for co-developers using Mac or Linux.
Is there a value I can use for the "test" command that would work on multiple operating systems?
Aucun commentaire:
Enregistrer un commentaire