lukeed / lukeed/uvu

Add `uvu/spy` package

Open
#10 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

future
Dominant language
JavaScript
Stars
3k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Hello @lukeed, I'm solving #9 issue, and when doing the tests I discover that your assert library doesn't have a way to test if some function was called. In other libraries like `jest` we can do it by creating some reference to a mock function (` jest.fn() `for example) and after that, check if this function was called. What do you think about this feature?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading uvu's existing assert library and the tests associated with issue #9, then compare the requested uvu/spy package with the jest.fn() behavior described here. The issue needs an API and scope decision before implementation; done would mean a documented way to detect that a function was called.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.