Testing · Middle · Question 15 of 75

Where do manual mocks for a node module live in Jest?

Explanation

Node module mocks in root __mocks__ are applied automatically; mocks for your own modules need an explicit jest.mock(path).

Further reading

Problem with a question

Testing · Middle · question 15

Test yourself

Take the Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz