We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to suggest a new rule, to place all hook blocks before any other blocks.
So, this is good:
describe('module', () => { let a beforeEach(() => { a = new A(); }) test('function', () => { expect(a).not.toBeUndefined(); }) })
And this is bad:
describe('module', () => { let a test('function', () => { expect(a).not.toBeUndefined(); }) beforeEach(() => { a = new A(); }) })
The text was updated successfully, but these errors were encountered:
Sounds like it could be useful - I'd think a good target goal would be something like "all hooks must be above the first test case in a block".
PRs welcome 😄
Sorry, something went wrong.
🎉 This issue has been resolved in version 22.18.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
I would like to suggest a new rule, to place all hook blocks before any other blocks.
So, this is good:
And this is bad:
The text was updated successfully, but these errors were encountered: