Quiz on Mocking

Quiz yourself on mocking in Jest.

We'll cover the following...

Quiz on mocking

1

Which option is not a reason to mock a module?

A)

It’s a dependency of the code we are testing.

B)

It makes a call to an external server.

C)

It’s causing our tests to fail.

D)

We need to be able to test that one of its functions was called.

Question 1 of 60 attempted
Access this course and 1400+ top-rated courses and projects.