Do Sway unit tests support multiple contract calls?

Sway’s unit testing is a relatively new feature compared to the rest of the ecosystem.

Recently, we landed support for deploying the “local contract” and providing it’s ID under a CONTRACT_ID const to make it easier to test calls from local unit tests.

We’re working on multi-contract calls currently, and we’ve got some ideas about how to do this even for contracts that are not declared under [contract-dependencies].

The current unit testing is still far from end-goal, but we’re making quick progress. See planned features/issues here.

4 Likes

very cool! thanks!!!