This project has ready to use TACT compiler, typescript + jest with tact-emulator, example how to do tests.
yarn test # To test contract
yarn build # To build contract
yarn deploy # To deploy contractTo deploy contract you should:
- Specify
contract.tactthat will be used as entry point of your contract - Configure
contract.deploy.tsaccording to yourcontract.tactto generate a deployment link. In particular, it is necessary to correctly call the Init() function from the contract.
If you renamed contract.tact to something else, you need to update tact.config.json correspondingly. For more information , see Tact Documentation
Example of contract tests are in contract.spec.ts. For more information about testing, see Tact Documentation
To add new test files to contract you should create *.spec.ts files similar to template's one and they would be automatically included in testing.
MIT