cypress-io / cypress-test-tiny

Tiny Cypress E2E test case

Home Page:https://www.cypress.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix running by itself

bahmutov opened this issue · comments

Our tests are "too" smart - they do conditional Cypress install, which means when this project is tested by itself it is failing

$(npm bin)/run-if npm run cypress:version
  commit-message-install found command npm run cypress:version +0ms
  commit-message-install command to run: npm run cypress:version +0ms
  commit-message-install getting last git commit message body +2ms
  commit-message-install no message to process +17ms
Platform linux is allowed

> cypress-test-tiny@1.0.0 cypress:version /home/ubuntu/cypress-test-tiny
> cypress version

sh: 1: cypress: not found

See example https://circleci.com/gh/cypress-io/cypress-test-tiny/470

Fixed