box / box/leche

Accessor properties are faked differently than data properties

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
102
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When using `leche.fake()`, accessor properties (getters/setters) are set to `undefined` while data properties are created with a getter that throws an error. This was a mistake, as accessor properties should be created the same way as data properties.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the leche.fake() implementation and compare how accessor properties and data properties are created. Make accessor properties follow the same behavior as data properties, then run the existing test suite and confirm both property types no longer produce different results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.