Testing
All Cairo code must be tested for the PR to be approved and merged. Tests must cover all of the functionality and edge cases.
Adding a new tests file
- Create a new file, such as
test_staking.cairo
- Update
tests/lib.cairo
and addmod test_staking;
Don't forget to sort the module names alphabetically. - Refer to the Starknet Foundry Book for reference on
snforge
which we use for tests.