Question: How to write unit test for contracts?
Open
- Dominant language
- TypeScript
- Stars
- 31
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I could not find any documentation regrading contracts testing. Is there any counterpart for [`#[ink(test)]`](https://use.ink/basics/contract-testing/) in ask! ? Or a way to mock `env()` interface?
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no project files or tests. Start by reviewing the linked ink contract-testing reference and the ask! env() interface; document the supported unit-testing or mocking approach with a reproducible example, so the resulting documentation answers both questions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- blockchain, documentation, testing
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100