Hi, i would like to propose a example using a updated version of jest-cli.
If a dev tried to install the jest-cli today it will have a version that is not compatible with the example.
jest.unmock('../Foo');import Foo from '../Foo';
those lines instead of
jest.dontMockconst Foo = required("../Foo");
did the trick on my updated Jest.
Hi, i would like to propose a example using a updated version of jest-cli. If a dev tried to install the jest-cli today it will have a version that is not compatible with the example.
jest.unmock('../Foo');
import Foo from '../Foo';
those lines instead ofjest.dontMock
const Foo = required("../Foo");
did the trick on my updated Jest.