ZenVoich / test

Motoko testing library to run tests with mops
MIT License
5 stars 3 forks source link

Is there any reference code for mocking intercanister calls?? #8

Open jake-beardo opened 3 months ago

jake-beardo commented 3 months ago

Sorry to keep pestering

ZenVoich commented 3 months ago

If you want to make inter canister call to local actor class canister then it should work without mocking.

Otherwise, using a wrapper class probably could be useful

jake-beardo commented 3 months ago

What is a wrapper class?

jake-beardo commented 3 months ago

I am trying to make an inter canister call to the IC management canister

ZenVoich commented 3 months ago

I think it is not possible with mops test. You will need dfx or pocket-ic replica

jake-beardo commented 3 months ago

Can I not mock the response from the IC management canister using mops test? :(