You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @G-Rath, I am interested in having this as a separate rule as well. Would you accept a pull request to add this? I have made a basic version locally and I can continue my work on it to create a pull request.
@aaron012 go for it! I made a start implementing this as prefer-hooks-in-order but didn't get around to finishing it - the branch is here if you want to use it (it's already got the documentation written, and the tests could be useful)
I using this rule https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-hooks-on-top.md
Would be nice have possibility to specify exact order for hooks, for example:
order: ['beforeAll', 'beforeEach', 'afterEach', 'afterAll']
The text was updated successfully, but these errors were encountered: