refactor(webapp): fix coverage
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.
Issues
- relates to https://github.com/vuejs/vue-jest/issues/522
- relates to https://github.com/vuejs/vue-jest/issues/480
- relates to https://github.com/vuejs/vue-test-utils/issues/1977
Todo
-
Investigate if we can use babel as coverage provider to get more meaningful coverage values. -> not working at the moment