Comcast / Comcast/Surf-N-Perf

Expose Mocks or Mocking functionality

Open
#66 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.