To run jest / selenium combo:
npm run ci
To run cypress tests:
npm run ci-cypress
To run the cypress electron app:
npm run dev
npx cypress open
"babel-core": "7.0.0-bridge.0",
"babel-jest": "22.4.3",
"enzyme": "3.2.0",
"enzyme-adapter-react-16": "1.1.1",
"jest": "22.0.1",
"react-addons-test-utils": "15.6.2",
"react-test-renderer": "16.2.0"
cypress-io/cypress-documentation#355
Most CI providers will automatically kill background processes so you don’t have to worry about cleaning up your server process once Cypress finishes.
However, if you’re running this script locally you’ll have to do a bit more work to collect the backgrounded PID and then kill it after cypress run. https://docs.cypress.io/guides/guides/continuous-integration.html#To-record-tests-running
https://docs.cypress.io/guides/references/best-practices.html#Web-Servers
Best Practice: Start a web server prior to running Cypress in the Test Runner or headless mode.