This package simplifies the setup process for Cypress, an end-to-end testing framework, with opinionated defaults, and some useful utils.
npx @yvalkova/cypress-setup
This command will perform the following tasks:
- Check if TypeScript is already installed. If not, it will install the latest version.
- Install Cypress.
- Initialize Cypress files.
- Add useful utils.
- Add Cypress scripts to
package.json
. - Add Cypress files to
.gitignore
.
I found myself setting up Cypress projects a couple of times, and I ended up copying configuration from previous projects, so I created this package to be able to do that effortlessly.
- Add common utility functions
- Add a safety check to abort execution if Cypress is already installed.
This package is distributed under the MIT License.