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 triggers on new before/beforeEach/after/afterEach.timeout #364

Open
perrin4869 opened this issue Nov 21, 2024 · 0 comments

Comments

@perrin4869
Copy link

This was added here: mochajs/mocha#5231
And the typings were just merged: DefinitelyTyped/DefinitelyTyped#71149

describe("my suite", () => {
  before(() => {}).timeout(1000); // triggers mocha/no-setup-in-describe
});

The above should now be valid (on mocha 11), but is triggering

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

No branches or pull requests

1 participant