Open palaniichukdmytro opened 6 years ago
I believe this would indicate that the script you are running is returning a non-0 exit code. What is the exit code if you run the same command outside of yarn?
Without seeing how your project is set up, I'm assuming cross-env
and nyc
are dependencies so they should have bin files in node_modules/.bin
, making the equivalent command something like
node_modules/.bin/cross-env NODE_ENV=test node_modules/.bin/nyc --reporter=cobertura --reporter=html --reporter=text-summary node_modules/mocha/bin/_mocha --reporter mocha-junit-reporter --reporter-options mochaFile=../Televic.Mirfus/TestOutput/JUnitResults/ui-unit-tests.xml
I think on Windows you can then get the last command's exit code by running
echo %errorlevel%
I did it in VS code terminal, when I tried in cmd it disapered
Looks like it does not belong to yarn or node
Weird. I'm not sure why it would be different. I don't see a difference on OSX VSCode, but I don't have my Windows machine with me right now to test anything on Win.
Bug
What is the current behavior? I get an error
error Command failed with exit code 1.
during my cover test.My test scripts
What is the expected behavior? Do not produce error
Please mention your node.js, yarn and operating system version. yarn v1.10.1 node v10.10.0 npm v6.4.1 windows 10