How to use Jest automock

Hello, I’m using the @glennsl/bs-jest library and want to access an automatically mocked function of a library.
The library was mocked this way:


And than I want to do something like this:

external convertToMock: 'fn => Jest.MockJs.fn<'fn, 'args, 'ret> = "%identity"

But the problem is that ReScript wraps imported functions in additional function that’s not the mocked function I need.

Is there a way how to deel with the problem. Either mock it in different way, or to say to ReScript not to wrap it to additional function?