Skip to content

cypress/unsafe-to-chain-command shouldn't complain if I'm not using the subject #268

@crfrolik

Description

@crfrolik

e.g.:

cy.get('foo')
  .click()
  .then(() => someFuncThatDoesNotUseFoo());

This is perfectly safe, even though the linter will complain about it. Splitting it out like this adds no value:

cy.get('foo')
  .click();
cy.then(() => someFuncThatDoesNotUseFoo());

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions