Muneeb Khan
Muneeb Khan

Reputation: 29

Throw Error: Describe is not a function. Getting this error while running Mocha Test

Throw Err  Errtype: describe is not a function.

I have installed the mocha but while running this test using command then getting describe is not a function error.

Upvotes: 1

Views: 436

Answers (1)

alexloehr
alexloehr

Reputation: 1831

You are overwriting the mocha functions describe, before, after and it in line 2 of your script. I don't know how selenium is handling this, but I would try this:

  • Comment line 2
  • Run mocha mochaTest.js again -> Error should disappear

Next you should uncomment line 2 again and see if selenium-webdriver/testing is installed properly.

Upvotes: 2

Related Questions