tntim96 / JSCover

JSCover is a JavaScript Code Coverage Tool that measures line, branch and function coverage
GNU General Public License v2.0
399 stars 84 forks source link

ReferenceError: window is not defined #305

Closed zswaaa closed 2 years ago

zswaaa commented 3 years ago

I use jscover to a VUE project, When i npm start this project, I get this error,"ReferenceError: window is not defined", I am so confused, And can not get same question by google, can anybody has been meet this problem, Thank u.

tntim96 commented 2 years ago

You're best of to use one of their built in coverage tools. https://vue-test-utils.vuejs.org/installation/#code-coverage