Expose Mocks or Mocking functionality
- Dominant language
- JavaScript
- Stars
- 90
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Clients consuming the library will presumably want to write tests validating their logic around using the data obtained from Surf-N-Perf. Since Surf-N-Perf presumably needs to mock the underlying browsers apis, etc for it's own use it would be nice to explicitly and cleanly expose these to clients for their own testing so they don't need to re-roll their own.
This could be in the form of just exposing mock data or providing functions to generate mocks based on some seed.
Contributor guide
Research direction
Start by reading the library's existing browser-API mocking and test setup to identify what is already available to Surf-N-Perf itself. Determine whether clients need reusable mock data, seeded mock generators, or both. Done means a documented public mocking interface lets clients test logic around data obtained from Surf-N-Perf without reimplementing the mocks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100