You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users have requested linting support to detect .only and .skip constructs and have submitted some issues and PRs to have these rules built in to eslint-plugin-cypress.
mocha/no-exclusive-tests to warn about the use of describe.only, it.only, suite.only, test.only, context.only and specify.only within the source code.
mocha/no-skipped-tests to warn about the use of describe.skip, it.skip, suite.skip, test.skip, context.skip, specify.skip, xdescribe, xit, xcontext and xspecify within the source code.
Issue
Users have requested linting support to detect
.only
and.skip
constructs and have submitted some issues and PRs to have these rules built in toeslint-plugin-cypress
.Suggestion
Notes
Mocha
As stated in the Cypress documentation Core Concepts > Writing and Organizing Tests > Writing Tests
eslint-plugin-mocha
The npm module eslint-plugin-mocha provides ESLint rules for mocha including the rules:
describe.only
,it.only
,suite.only
,test.only
,context.only
andspecify.only
within the source code.describe.skip
,it.skip
,suite.skip
,test.skip
,context.skip
,specify.skip
,xdescribe
,xit
,xcontext
andxspecify
within the source code.The plugin eslint-plugin-mocha is used together with eslint-plugin-cypress in the cypress-io/cypress-example-kitchensink repo under ESLint
8.x
.Related issues / PRs
.only
is found in tests. #28The text was updated successfully, but these errors were encountered: