parisian
v1.1.6
Published
Automated E2E tests for Paris project using Cypress
Readme
Parisian
Installation
To install the parisian package without saving it to package.json, run the following command:
npm install parisian --no-saveDependency Installation
If you haven't installed the necessary dependencies yet, you can do so with the following command:
npm install --save-dev cypress@^14.0.0 eslint@^9.18.0 eslint-plugin-cypress@^4.1.0 husky@^9.1.7 lint-staged@^15.4.2 standard@^17.1.2 cypress-mochawesome-reporter@^3.8.2Scripts Configuration
Add the following scripts to your package.json file:
"scripts": {
"lint": "npx eslint '**/*.js'",
"stylelint": "npx stylelint '**/*.scss'",
"cy:open": "cypress open --config-file cypress.config.dev.js",
"cy:run": "cypress run --config-file cypress.config.dev.js"
}Husky Setup
Initialize Husky by running:
npx husky installThen, create a .husky/pre-commit file and add the following lines:
npm run lint && npm run stylelintYou can add the following configuration to your package.json file to ensure that Cypress does not trigger StandardJS errors:
"standard": {
"globals": [
"it",
"cy",
"Cypress",
"describe",
"beforeEach",
"afterEach"
],
"plugins": [
"cypress"
]
}