To test your Sway applications using the TS-SDK, you can pick whatever testing library or framework you feel comfortable with. There isn't any specific testing framework needed, it is entirely up to the user. That being said, the TS-SDK uses VitestIcon Link for its tests.
On top of these two utilities, if you want to quickly get up and running with a local node, you can use the launchNodeAndGetWallets from the @fuel-ts/account/test-utils package.
import { launchNodeAndGetWallets } from"@fuel-ts/account/test-utils";const { stop, wallets, provider } =awaitlaunchNodeAndGetWallets();// ... do your tests - deploy contracts using the wallets, fetch info from the provider, etc.// stop the node when you're donestop();