Given a JS file like this:
export const uid = () => Math.random().toString();
export const doubleUid = () => [uid(),uid()].join('_');
How can you use Jest to mock uid as () => 'foo' such that the result of doubleUid() is foo_foo? Is it possible to do so without modifying the file above?