单元测试跑通了,但是去访问coverage测试报告时,没有代码覆盖率,控制台提示如下:
Handlebars: Access has been denied to resolve the property "statements" because it is not an "own property" of its parent.
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details
handlebars 版本问题
npm list handlebars
//查看版本信息npm uninstall -g handlebars
//卸载当前版本npm install handlebars@4.5.3
//安装