Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

Open 1 Answers 29 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 Jul 27, 2017 by mayur (733 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.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors