Quiz on Mocking
Quiz yourself on mocking in Jest.
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
Get hands-on with 1200+ tech skills courses.