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
This rule reports all function calls and use of the dot operator (due to getters and setters) directly in describe blocks.
This code is rejected
constassert=require('assert/strict');describe('no-setup-in-describe',()=>{// ESLint: Unexpected function call in describe block.(mocha/no-setup-in-describe)constfoo=Symbol('bar');it('foo should not be null',async()=>{assert.notStrictEqual(foo,null);});});
Symbol does merely instantiate a non-mutable object.
Configuration:
node 16.5
eslint 7.27
eslint-plugin-mocha 9.0
The text was updated successfully, but these errors were encountered:
Summary
I came against rule activation on calls on ECMAScript
Symbol
class.I think it should not happen, as it does not affect the global state.
Details
https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-setup-in-describe.md
This code is rejected
Symbol does merely instantiate a non-mutable object.
Configuration:
The text was updated successfully, but these errors were encountered: