Jest Mocking node_modules With Nested File
<p>I am trying to mock a 3rd party library (in node_modules) that is nested in a sub-directory.
I have created the mock in <code>__mocks__/@exponent/ex-navigation</code>. This sits at the top level next to my node_modules dir.</p>

<p>I setup the mock within my test file via <code>jest.mock('@exponent/ex-navigation');</code>.</p>

<p>For some reason I can't get it to use the mock file. I think it has something to do with the <code>@exponent</code> subdirectory. If I change it to something simple like <code>fs</code> it works.</p>