Article Image
read

If you are using NightwatchJS getting ESLint errors like these;

6:1  error  "describe" is not defined    no-undef
16:3  error  "beforeEach" is not defined  no-undef
39:3  error  "it" is not defined          no-undef

Simply ignore the relevant Nightwatch globals in your .eslintrc

...
"globals": {
  // ignore these nightwatch globals
  "describe": false,
  "before": false,
  "beforeEach": false,
  "it": false
  ...
}
Blog Logo

Glenn Roberts

Technologist, Entrepreneur, Partner at Siyelo


Published . All content copyright Glenn Roberts © 2016. All rights reserved.

Have an opinion on this? You can reply via Twitter or discuss it on Reddit.
Image

Glenn Roberts

Tech, Startups, Digital Nomad Life

Back to Overview