Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lines in coverage report are incorrect #3

Open
fritx opened this issue Sep 19, 2017 · 4 comments
Open

Lines in coverage report are incorrect #3

fritx opened this issue Sep 19, 2017 · 4 comments

Comments

@fritx
Copy link

fritx commented Sep 19, 2017

// 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)
  })
})

@eddyerburgh eddyerburgh added bug and removed bug labels Sep 19, 2017
@eddyerburgh
Copy link
Owner

Try adding "mapCoverage": true to the jest field in package.json. Like this - https://github.com/eddyerburgh/jest-vue/blob/master/package.json#L73

@fritx
Copy link
Author

fritx commented Sep 20, 2017

Seems it's ok in this repo, but not in my own library repo :/
Let me try again later.

@fritx
Copy link
Author

fritx commented Sep 20, 2017

I met some bugs when doing coverage with jest in vue,
now I switched back to karma/mocha/phantomjs.

Waiting for more progress on vue-test-utils.

@eddyerburgh
Copy link
Owner

Can you report bugs to https://github.com/eddyerburgh/jest-vue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants