dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
176 stars 85 forks source link

chore: create PocketIC instance via PocketIC library #4007

Closed mraszyk closed 3 days ago

mraszyk commented 3 days ago

This PR refactors PocketIC instance creation to use the PocketIC library. Having a PocketIC instance handle around is useful to make requests to the PocketIC instance without using an agent, e.g., to impersonate the request's sender (in a follow up PR).

mraszyk commented 3 days ago

Having a PocketIC instance handle around is useful

The PocketIC instance handle cannot be shared between dfx processes using the approach from this PR.