NestJS · Senior · Question 69 of 75

What does useMocker() on a testing module builder help with?

Explanation

Combine it with a mocking library factory (e.g. jest-mock-extended or @golevelup/ts-jest) and override only what the test cares about.

Further reading

Problem with a question

NestJS · Senior · question 69

Test yourself

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

Take this quiz