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

no-empty-description does not detected when in the same line happens also the no-exclusive-tests #363

Open
sokraglav13 opened this issue Sep 25, 2024 · 1 comment
Labels

Comments

@sokraglav13
Copy link

Hello, I found an issue when Im running npx eslint Test-1.test.js in the test case.
The issue is that in the same lines breaks two rules but in console prints only the one rule.

My System Specs

Node: v18.17.0
eslint: v8.57.1
slint-plugin-mocha: v10.5.0

Reproduce Steps

  1. The structure of the test is as below:
    it.only("", async function () { ... });
  2. Run npx eslint Test-1.test.js

Output

`error  Unexpected exclusive mocha test  mocha/no-exclusive-test

`
So the question is should find both rules in one line ?
Has anyone identify this behaviour ?

Thank you!

@lo1tuma
Copy link
Owner

lo1tuma commented Sep 25, 2024

Interesting. It seems no-empty-description only detects empty descriptions when not using a modifier like .only(). So it("", () => {}) is detected but it.only("", () => {}) is not detected. That is something we should fix.

@lo1tuma lo1tuma added the bug label Sep 25, 2024
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

2 participants