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-setup-in-describe complains about arrow functions timeout #211

Closed
perrin4869 opened this issue Sep 14, 2019 · 1 comment · Fixed by #215
Closed

no-setup-in-describe complains about arrow functions timeout #211

perrin4869 opened this issue Sep 14, 2019 · 1 comment · Fixed by #215
Labels

Comments

@perrin4869
Copy link

The following code will error, even with mocha/no-mocha-arrows turned off:

describe('my suite', () => {
  it('should pass within 2 seconds', () => { // mocha/no-setup-in-describe: Unexpected member expression in describe block. Member expressions may call functions via getters.
    // ...
  }).timeout(2000);
});

Maybe the solution would be to add an option to allow this use case?

@lo1tuma
Copy link
Owner

lo1tuma commented Sep 19, 2019

I would say this is a bug. It is similar to #208.

@lo1tuma lo1tuma added the bug label Sep 19, 2019
lo1tuma added a commit that referenced this issue Oct 28, 2019
Fix no-setup-in-describe to allow mocha config calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants