New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add throw scenarios to simulate
and dryRun
#1246
Conversation
simulate
and dryRun
Coverage report
Test suite run success1205 tests passing in 208 suites. Report generated by 🧪jest coverage report action from 4558de1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielbate You could have used the safeExec
utility in these try/catch validations, but as you are not yet dealing with FuelErrors
, these expectations will probably need to be aligned with:
cc @Torres-ssf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arboleya good idea 👍🏻 |
The following forum post asks whether a wallet with no funding should be able to perform a read only call. Current specs detail that this is not possible, as per our own TS documentation.
This PR will add some test cases to the demo typegen application to directly replicate the above forum post, as well as additional expectations to fuel-gauge for both
simulate
anddryRun
throw expectations. This is already explained in the documentation.