OpenZeppelin / cairo-contracts

OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup
https://docs.openzeppelin.com/contracts-cairo
MIT License
813 stars 329 forks source link

Improve component tests with ComponentState #836

Closed ericnordelo closed 10 months ago

ericnordelo commented 10 months ago

Fixes #777

PR Checklist

enitrat commented 10 months ago

I'm also debating whether we should document the testing pattern in CONTRIBUTING. Maybe it's simple enough to follow without documenting it. What do you think?

If that can help I just wrote about it in the Cairo Book, you could simply link this. Let me know what you think

https://github.com/cairo-book/cairo-book/pull/458/files

ericnordelo commented 10 months ago

I'm also debating whether we should document the testing pattern in CONTRIBUTING. Maybe it's simple enough to follow without documenting it. What do you think?

IMO is simple enough