Tuesday, February 18, 2020

ESLint + Mocha

Hi, you are working with Mocha and ESLint is telling you there is a problem and the problem looks like this:




  'describe' is not defined.eslint(no-undef)

 It easy to solve it. Go .eslintrc.json and add the following line ("mocha": true):

"env": {
    "browser"true,
    "es6"true,
    "node"true,
    "mocha"true
  },

Happy testing!