How to write the unit test to mock Metadata.getInfo call #2067
Unanswered
shitai-chen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
I was trying to write an unit test for this piece of code.
because in the unit test, it's better not to do a real rpc call. So I want to mimic the call to return the metadataData. I used jest framework, but I don't know how to mimic this. Any ideas?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions