I have a rust solana program code on beta.solpg.io.
After development, I am about to test my code but I don't know how to do it.
I copied deposit and withdraw program sample code on github, but I don't know how it works and tests.
I have a rust solana program code on beta.solpg.io.
After development, I am about to test my code but I don't know how to do it.
I copied deposit and withdraw program sample code on github, but I don't know how it works and tests.
You'd need to write tests yourself first in the anchor.test.ts
file under tests
folder:
Then, you can either run test
command in CLI or click on the "
Test" button. In case you don't see the file there, just create a anchor.test.ts yourself and get started!
I don't think that answer alone will be enough. like that: const initialize = web3.Keypair.generate(); const user = web3.Keypair.generate(); How can I handle it? We need to think more deeply about it.