Automocking
In this (very short) optional lesson, learn one more way to mock modules in your code.
We'll cover the following...
We'll cover the following...
Automocking
You noticed that, to mock a module, we had to write:
jest.mock('module name');
However, there is one more approach that makes even this line unnecessary.
Note: I show you this approach merely for informative purposes, but I myself have never found it useful in ...