I am somehow unable to write a proper mock for the library. I though to mock all native calls using node-forge JS calls.
I know it will not properly test this native module (we would need detox tests that run natively on the device-emu) but just so I have test coverage of my decrypting code that uses RNSC in some places.
I am somehow unable to write a proper mock for the library. I though to mock all native calls using
node-forge
JS calls. I know it will not properly test this native module (we would need detox tests that run natively on the device-emu) but just so I have test coverage of my decrypting code that uses RNSC in some places.So what I tried in my jest test file is this:
But I am still getting
which is
Any idea what could be wrong with my mocks? I also tried
jest.mock
but it also did not work.