solving the jest.mock()+esmodules hoisting problem

from blog Solving the decision problem, | ↗ original
↗ original
A proposal to use jest.mock() with esmodules without babel shenanigans