Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier plugin added to Cypress tests #240

Merged
merged 5 commits into from
Jan 23, 2020

Conversation

szymon-owczarzak
Copy link
Contributor

@szymon-owczarzak szymon-owczarzak commented Jan 23, 2020

Description

With prettier we will have consistent formatting of JS code of our test files.

Motivation and Context

Consistent formatting.

Types of changes

  • Code format

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • Automated functional tests have been added or modified to cover my changes (if applicable)
  • I have updated the documentation accordingly.

I hereby agree to the terms of the Cogboard Contributor License Agreement.

@szymon-owczarzak szymon-owczarzak added the maintenance documentation, refactoring, releasing etc... label Jan 23, 2020
Comment on lines +1 to +3
{
"singleQuote": true
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier setup

Comment on lines +85 to +86
`createWidget(name)` - use any name from `functional/cypress-tests/cypress/fixtures/Widgets.js` for example: `Widgets.whiteSpace.name` - this will add configured widget to current board. Widget type will be deducted from name prop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation update

Comment on lines +10 to +38
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-cypress": "^2.8.1",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^4.0.6",
"lint-staged": "^9.5.0",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1"
},
"scripts": {
"test": "npm install & npx cypress run --browser chrome"
"test": "npm install & npx cypress run --browser chrome",
"prettier": "prettier --write \"cypress/**/*.{js,ts,json}\""
},
"repository": {
"type": "git",
"url": "https://github.com/Cognifide/cogboard"
},
"author": "",
"license": "ISC"
"license": "ISC",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"cypress/**/*.{js,ts,json}": [
"pretty-quick --staged",
"git add"
]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier setup

@szymon-owczarzak szymon-owczarzak merged commit 5ca6554 into master Jan 23, 2020
@szymon-owczarzak szymon-owczarzak deleted the Feature/prettier-for-cypress-redone branch January 23, 2020 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance documentation, refactoring, releasing etc...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants