eddyerburgh / eddyerburgh/vue-test-utils-jest-example

Lines in coverage report are incorrect

Open
#3 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
90
Forks
40
PR merge metrics
No merged PRs in 30d

Description

```js
// List.spec.js
describe('List.vue', () => {
it('renders li for each item in props.items', () => {
// const items = ['', '']
// const wrapper = shallow(List, {
// propsData: { items }
// })
// expect(wrapper.findAll('li')).toHaveLength(items.length)
})
})
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the List.spec.js example shown in the issue and compare its coverage output with the referenced screenshots. Reproduce the incorrect line report, then trace the mismatch between the test and reported source lines. Done means the coverage report identifies the executed lines correctly and the relevant test still passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.