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

ci: Use eslint plugin to catch .only in tests #9624

Merged
merged 2 commits into from
Dec 21, 2020

Conversation

bz2
Copy link
Contributor

@bz2 bz2 commented Dec 10, 2020

Current method using stop-only doesn't really understand javascript syntax and is prone to false positives, particularly on windows.

Adapted from cypress-io/cypress-documentation#2194 change.

For now punt on linting coffeescript for this rule. (Looking at #9125 which is cleaning up some of the old coffeescript migration pieces).

Fixes #5518

Current method using stop-only doesn't really understand javascript
syntax and is prone to false positives, particularly on windows.

Adapted from cypress-io/cypress-documentation#2194 change.

For now punt on linting coffeescript for this rule.

Fixes cypress-io#5518
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 10, 2020

Thanks for taking the time to open a PR!

@CLAassistant
Copy link

CLAassistant commented Dec 10, 2020

CLA assistant check
All committers have signed the CLA.

@bz2 bz2 changed the title Use eslint plugin to catch .only in tests ci: Use eslint plugin to catch .only in tests Dec 10, 2020
@jennifer-shehane
Copy link
Member

We've almost removed all CoffeeScript in this repo, aside from tests that are literally testing how CoffeeScript tests run within Cypress (finishing removing all in the next few weeks).

Copy link
Contributor

@bahmutov bahmutov left a comment

Choose a reason for hiding this comment

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

Love it, thank you very much

@bahmutov bahmutov merged commit 1ab81f1 into cypress-io:develop Dec 21, 2020
@bz2 bz2 deleted the no_no_only branch December 21, 2020 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Found .only in folder" error when trying to commit
4 participants