3.1.0 • Published 4 years ago

@manomano/cypress v3.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Cypress

This package includes manomano e2e configuration.

Scripts

  • The package exposes a start script (/scripts/e2e.js), which will automatically boot a cypress instance

Configuration

It allows some parameters to be passed as arguments to the CLI.

"scripts": {
    "e2e": "macgyver e2e --platform=gb --port=4000",
    "e2e:dev": "macgyver e2e --dev --platform=gb",
    "e2e:prod": "yarn build && yarn e2e",
}
ParamtypedefaultValueDescription
devbooleanfalseWhen it is true, it will run yarn start:[platform] as a dev server. Otherwise, production build will be used. In dev cypress run in open mode while in production run mode is used
platformstringfrWhich platform to use in tests.
portnumber3000Which port is used by the server

Eslint

In order to get eslint support on e2e files you can add the eslint-plugin-cypress package and extend it.

{
  "extends": ["plugin:cypress/recommended"]
}