Skip to content

refactor(webapp): fix coverage

Hannes Heine requested to merge fix-coverage into master

Created by: ulfgebhardt

🍰 Pullrequest

Fixed coverage reporting. The coverage report is now properly generated using @vue/vue2-jest instead of vue-jest.

Additionally this defines coverageProvider: "v8" to get proper highlighting in the coverage html files. See: https://jestjs.io/docs/configuration#coverageprovider-string

Apparently template and script elements are included in the coverage threshold and this leads to a high coverage value. Still this is an improvement since coverage now is correct(apparently was before as well) and is debugable via the html.

image

Issues

Todo

  • Investigate if we can use babel as coverage provider to get more meaningful coverage values. -> not working at the moment

Merge request reports