AnnaS
AnnaS

Reputation: 1

TestCafe oncePerFixture Error when running

I am trying to use oncePerFixture feature in TestCafe and get an error:

“TypeError: Cannot read property “testRun” of undefined.

I cannot figute out what is the problem?

Upvotes: 0

Views: 76

Answers (1)

Alex Kamaev
Alex Kamaev

Reputation: 6318

I suppose that the problem is that you forgot to pass the t argument to the cleanDB function call inside the afterEach hook. If this does not help, please share your full example, as it's difficult to determine the cause of the issue without your full code.

Upvotes: 1

Related Questions