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.


1 / 6
...