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
If you look at the documentation of Mocha, you'll see that the lexical context is rarely needed to do something (I'm actually pretty sure that we have never used it before).
Whenever you try to use this in the a fat arrow function, ESLint will show an error about this anyway, so I don't really see the benefit of disallowing them altogether.
Reading mocha documentation, they say to avoid the arrow function notation when defining tests because it breaks the context of mocha.
In the best scenario, we should be able to show an error when arrow function is used in such scenario.
The text was updated successfully, but these errors were encountered: