3.1.0 • Published 4 years ago
@manomano/cypress v3.1.0
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",
}
Param | type | defaultValue | Description |
---|---|---|---|
dev | boolean | false | When 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 |
platform | string | fr | Which platform to use in tests. |
port | number | 3000 | Which 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"]
}