frida/frida-node

RPC function never resolved in jest

Closed this issue · 2 comments

When call rpc function in jest, the promise will never resolve.
Finally found the cause of the problem:
jestjs/jest#2549
payload instanceof Array in isRpcSendMessage function returns false, because the payload is not created as the same context as jest. The problem can be solved by using Array.isArray(payload) instead.

Thanks @ZachQin! I can confirm that I was having the exact same problem and this solution worked for me, would be great to get your changes merged in

Thanks @ZachQin! I can confirm that I was having the exact same problem and this solution worked for me, would be great to get your changes merged in

Hi @leonitousconforti , I'm glad to hear that the solution worked for you! The changes have indeed been merged. Thanks for your feedback and support!