Cypress Quick Tip: Scripts

05/22/20181 Min Read — In Resources, Testing, Development

In your package.json the simplest setup is running your testrunner for day to day development and running your tests on the commandline, perhaps for continuous integration. This could be as simple as:

"scripts": {
"cy:ci": "cypress run",
"cy:dev": "cypress open",
}

If you wanted to get much fancier and perhaps support a complex pipeline, you could do the same core scripts but with your particular project setup in mind. The ways to skin this cat are endless so I won't walk you through all of them. What you have in front of you should be enough to get you going and get your CI/CD in order.