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

Rule proposal: before/after hooks order #193

Open
oprogramador opened this issue Jun 20, 2019 · 0 comments
Open

Rule proposal: before/after hooks order #193

oprogramador opened this issue Jun 20, 2019 · 0 comments
Labels

Comments

@oprogramador
Copy link

oprogramador commented Jun 20, 2019

I would like to have a rule enforcing the hooks order.

IMO the default order should be:

  • before
  • beforeEach
  • afterEach
  • after

because it's the execution order.
Anyway there should be a possibility of overriding this order in the eslint config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants