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

Support arrow functions in no-setup-in-describe rule #158

Closed
crcatala opened this issue Mar 6, 2018 · 0 comments · Fixed by #195
Closed

Support arrow functions in no-setup-in-describe rule #158

crcatala opened this issue Mar 6, 2018 · 0 comments · Fixed by #195

Comments

@crcatala
Copy link

crcatala commented Mar 6, 2018

While Mocha discourages the arrow function as arguments to describe, etc. would it still be possible to get the no-setup-in-describe rule to work with arrow functions?

For example:

describe('foo', function () {
  a(); // `no-setup-in-describe` rule works as intended
});

describe('foo', () => {
  a(); // `no-setup-in-describe` rule does not seem to apply here
});
lo1tuma added a commit that referenced this issue Jul 8, 2019
Fix no-setup-in-describe to work with arrow functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant