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

cypress/no-async-before rule fails with "definition not found" #190

Closed
MikeMcC399 opened this issue Apr 25, 2024 · 1 comment
Closed

cypress/no-async-before rule fails with "definition not found" #190

MikeMcC399 opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels

Comments

@MikeMcC399
Copy link
Collaborator

Issue

  1:1  error  Definition for rule 'cypress/no-async-before' was not found  cypress/no-async-before

Additionally there are documentation errors and omissions:

  1. The entry for this rule is missing in the README > Rules section, although it is mentioned in the README > Usage section.
  2. The documentation heading for no-async-before "Prevent using async/await in Cypress test cases (no-async-tests)" is incorrect and is the same as no-async-tests.

Steps to reproduce

Ubuntu 22.04.4 LTS, Node.js v22.12.2 LTS

Execute

mkdir no-async-before-test
cd no-async-before-test
git init
npm init -y
npm install eslint@8 eslint-plugin-cypress@latest

Create a .eslintrc.json file

{
  "plugins": [
    "cypress"
  ],
    "rules": {
    "cypress/no-async-tests": "error",
    "cypress/no-async-before": "error"
  }
}
touch index.js
npx eslint .

Logs

$ npx eslint .

  1:1  error  Definition for rule 'cypress/no-async-before' was not found  cypress/no-async-before

✖ 1 problem (1 error, 0 warnings)
@MikeMcC399
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant