Mocks should not be manually imported from a __mocks__ directory. Instead use `jest.mock` and import from the original module pat code example
Example: how to mock a library in jest
import randomColor from "randomcolor";
jest.mock("randomColor", () => {
return {
randomColor: () => {
return mockColor('#123456');
}
}
});
let mockColor = jest.fn();