MetaMask / MetaMask/contributor-docs

Add guidelines around test mocking

Open
#114 1 comment 0 reactions 0 assignees View on GitHub
category-documentation github-migration-triaged team-wallet-framework wf-documentation
Dominant language
JavaScript
Stars
86
Forks
42
PR merge metrics
No merged PRs in 30d

Description

We should add guidance on how to use mocks when testing.

Some ideas for inspiration:
* https://www.youtube.com/watch?v=Af4M8GMoxi4
* https://martinfowler.com/articles/mocksArentStubs.html

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the proposed references, including Martin Fowler's article on mocks and stubs and the linked YouTube talk, then inspect the contributor-docs structure to find the appropriate testing guidance location. Done means the documentation clearly explains how to use mocks when testing and incorporates relevant guidance from the references.

Written by the indexing model from the issue text.

Assessment

Domain
documentation, testing
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.