my project use vue/ts/js and we don‘t have a test framework,so we test by people.
I expect:
1.Instrument code
2.Excute new code in output
3.Manually log in to the system for testing
4.Get window.coverage to generate a html report
after i run "nyc instrument ./src ./output --delete && nyc vue-cli-service serve ./output/main" ,the coverage doesn't contain vue,js,ts ,but only have js in node_modules
Observed Behavior
Troubleshooting steps
[*] still occurring when I put cache: false in my nyc config
here is my nyc config in package.json
"nyc": {
"reporter": [
"html",
"text-summary"
],
"cache": false,
"all": true,
"include": [
"src//*.js",
"src/*/.ts",
"src//*.tsx",
"src/*/.vue"
],
"extension": [
".vue",
".js",
".cjs",
".mjs",
".ts",
".tsx",
".jsx"
],
"exclude": [
"node_modules",
"/test/"
],
"instrument": true,
"sourceMap": true
},
Link to bug demonstration repository
Expected Behavior
my project use vue/ts/js and we don‘t have a test framework,so we test by people. I expect: 1.Instrument code 2.Excute new code in output 3.Manually log in to the system for testing 4.Get window.coverage to generate a html report after i run "nyc instrument ./src ./output --delete && nyc vue-cli-service serve ./output/main" ,the coverage doesn't contain vue,js,ts ,but only have js in node_modules
Observed Behavior
Troubleshooting steps
cache: false
in my nyc config here is my nyc config in package.json "nyc": { "reporter": [ "html", "text-summary" ], "cache": false, "all": true, "include": [ "src//*.js", "src/*/.ts", "src//*.tsx", "src/*/.vue" ], "extension": [ ".vue", ".js", ".cjs", ".mjs", ".ts", ".tsx", ".jsx" ], "exclude": [ "node_modules", "/test/" ], "instrument": true, "sourceMap": true },Environment Information