Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

mocha beforeeach TypeError: Cannot read property 'call' of undefined

Open 1 Answers 61 Views
0 1

I am trying to execute mocha tests. I am getting below error.

TypeError: Cannot read property 'call' of undefined


1 Answer

There are many possibilities for this to happen. But, since you are using it for TDD, I assume that you are facing issue with executing the test again with next set of browsers.

I would suggest you to use grunt-loop-mocha to execute tests in different browsers.
answered by (830 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.