我使用vue-cli 3.0创建项目,并使用 chainWebpack: (config)=>{
config.resolve.alias
.set('@', resolve('src'))
.end();
config.module
.rule("istanbul")
.test(/\.(js|vue)$/)
.enforce("post")
.include.add("src")
.end()
.use("istanbul-instrumenter-loader")
.loader("istanbul-instrumenter-loader")
.options({ esModules: true })
.end();
// config
// .devtool("#eval")
// .end();
},
创建覆盖范围,但找不到vue文件
这是我的vue.config.js
"nyc": {
"include": [
"src/**/*.{js,vue,ts}"
],
"extension": [
".js",
".vue",
".ts"
],
"exclude": [
"dist",
"node_modules"
],
"require": [
"jsdom-global/register"
],
"reporter": ["lcov", "text"],
"sourceMap": false,
"instrument": false
}
这是我的package.json
<settings>
<add name="int16" value="edmmapping number(4,0)"/>
<add name="int32" value="edmmapping number(8,0)"/>
<add name="int64" value="edmmapping number(10,0)" />
</settings>